Skip to content

Commit 3ffd4f0

Browse files
committed
add args in registrationConfiguration for operator APIs
Signed-off-by: ZhiweiYin <[email protected]>
1 parent 2b50efd commit 3ffd4f0

5 files changed

+19
-0
lines changed

operator/v1/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ spec:
9393
description: RegistrationConfiguration contains the configuration of registration
9494
type: object
9595
properties:
96+
args:
97+
description: Args is list of valid flag arguments that are accepted in registration
98+
type: object
99+
additionalProperties:
100+
type: string
96101
featureGates:
97102
description: "FeatureGates represents the list of feature gates for registration If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates: 1. If featuregate/Foo does not exist, registration-operator will discard it 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true] 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false, \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false."
98103
type: array

operator/v1/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ spec:
124124
description: RegistrationConfiguration contains the configuration of registration
125125
type: object
126126
properties:
127+
args:
128+
description: Args is list of valid flag arguments that are accepted in registration
129+
type: object
130+
additionalProperties:
131+
type: string
127132
featureGates:
128133
description: "FeatureGates represents the list of feature gates for registration If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates: 1. If featuregate/Foo does not exist, registration-operator will discard it 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true] 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false, \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false."
129134
type: array

operator/v1/0001_00_operator.open-cluster-management.io_klusterlets.crd.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ spec:
9393
description: RegistrationConfiguration contains the configuration of registration
9494
type: object
9595
properties:
96+
args:
97+
description: Args is list of valid flag arguments that are accepted in registration
98+
type: object
99+
additionalProperties:
100+
type: string
96101
featureGates:
97102
description: "FeatureGates represents the list of feature gates for registration If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates: 1. If featuregate/Foo does not exist, registration-operator will discard it 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true] 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false, \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false."
98103
type: array

operator/v1/types.go

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ type RegistrationConfiguration struct {
6969
// he can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.
7070
// +optional
7171
FeatureGates []FeatureGate `json:"featureGates,omitempty"`
72+
73+
// Args is list of valid flag arguments that are accepted in registration
74+
Args map[string]string `json:"args,omitempty"`
7275
}
7376

7477
type FeatureGate struct {

operator/v1/zz_generated.swagger_doc_generated.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)