Skip to content

Commit c0d6364

Browse files
authored
feat: add clusterlabels to klusterlet types. (#389)
Signed-off-by: ramekris3163 <[email protected]>
1 parent 95a93c7 commit c0d6364

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,12 @@ spec:
272272
required:
273273
- maxCustomClusterClaims
274274
type: object
275+
clusterLabels:
276+
additionalProperties:
277+
type: string
278+
description: ClusterLabels is labels set on ManagedCluster when
279+
creating only, other actors can update it afterwards.
280+
type: object
275281
featureGates:
276282
description: "FeatureGates represents the list of feature gates
277283
for registration\nIf it is set empty, default feature gates

operator/v1/types_klusterlet.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ type RegistrationConfiguration struct {
152152
// +optional
153153
ClusterAnnotations map[string]string `json:"clusterAnnotations,omitempty"`
154154

155+
// ClusterLabels is labels set on ManagedCluster when creating only, other actors can update it afterwards.
156+
// +optional
157+
ClusterLabels map[string]string `json:"clusterLabels,omitempty"`
158+
155159
// KubeAPIQPS indicates the maximum QPS while talking with apiserver on the spoke cluster.
156160
// If it is set empty, use the default value: 50
157161
// +optional

operator/v1/zz_generated.deepcopy.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)