Skip to content

Commit

Permalink
crd: introduce the field applied in setting
Browse files Browse the repository at this point in the history
ref: #8070

Signed-off-by: James Lu <james.lu@suse.com>
  • Loading branch information
mantissahz committed May 13, 2024
1 parent 6b3b72e commit 08ad953
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ rules:
resources: ["volumesnapshotclasses", "volumesnapshots", "volumesnapshotcontents", "volumesnapshotcontents/status"]
verbs: ["*"]
- apiGroups: ["longhorn.io"]
resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings",
resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", "settings/status",
"engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status",
{{- if .Values.openshift.enabled }}
"engineimages/finalizers", "nodes/finalizers", "instancemanagers/finalizers",
Expand Down
13 changes: 13 additions & 0 deletions chart/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2835,6 +2835,10 @@ spec:
jsonPath: .value
name: Value
type: string
- description: The setting is applied
jsonPath: .status.applied
name: Applied
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand All @@ -2851,6 +2855,15 @@ spec:
type: string
metadata:
type: object
status:
description: SettingStatus defines the observed state of the Longhorn setting
properties:
applied:
description: The setting is applied.
type: boolean
required:
- applied
type: object
value:
description: The value of the setting.
type: string
Expand Down
15 changes: 14 additions & 1 deletion deploy/longhorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2987,6 +2987,10 @@ spec:
jsonPath: .value
name: Value
type: string
- description: The setting is applied
jsonPath: .status.applied
name: Applied
type: boolean
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand All @@ -3003,6 +3007,15 @@ spec:
type: string
metadata:
type: object
status:
description: SettingStatus defines the observed state of the Longhorn setting
properties:
applied:
description: The setting is applied.
type: boolean
required:
- applied
type: object
value:
description: The value of the setting.
type: string
Expand Down Expand Up @@ -4174,7 +4187,7 @@ rules:
resources: ["volumesnapshotclasses", "volumesnapshots", "volumesnapshotcontents", "volumesnapshotcontents/status"]
verbs: ["*"]
- apiGroups: ["longhorn.io"]
resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings",
resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", "settings/status",
"engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status",
"sharemanagers", "sharemanagers/status", "backingimages", "backingimages/status",
"backingimagemanagers", "backingimagemanagers/status", "backingimagedatasources", "backingimagedatasources/status",
Expand Down

0 comments on commit 08ad953

Please sign in to comment.