Skip to content

Commit e49c54a

Browse files
Add managed cluster arn for the klusterlet api (#341)
Signed-off-by: Suvaansh <[email protected]>
1 parent 17751e4 commit e49c54a

4 files changed

+22
-1
lines changed

crdsv1beta1/0001_00_operator.open-cluster-management.io_klusterlets.crd.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ spec:
203203
hubClusterArn:
204204
description: 'The arn of the hub cluster (ie: an EKS cluster). This will be required to pass information to hub, which hub will use to create IAM identities for this klusterlet. Example - arn:eks:us-west-2:12345678910:cluster/hub-cluster1.'
205205
type: string
206+
minLength: 1
207+
managedClusterArn:
208+
description: 'The arn of the managed cluster (ie: an EKS cluster). This will be required to generate the md5hash which will be used as a suffix to create IAM role on hub as well as used by kluslerlet-agent, to assume role suffixed with the md5hash, on startup. Example - arn:eks:us-west-2:12345678910:cluster/managed-cluster1.'
209+
type: string
210+
minLength: 1
206211
registrationImagePullSpec:
207212
description: RegistrationImagePullSpec represents the desired image configuration of registration agent. quay.io/open-cluster-management.io/registration:latest will be used if unspecified.
208213
type: string

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,14 @@ spec:
311311
description: |-
312312
The arn of the hub cluster (ie: an EKS cluster). This will be required to pass information to hub, which hub will use to create IAM identities for this klusterlet.
313313
Example - arn:eks:us-west-2:12345678910:cluster/hub-cluster1.
314+
minLength: 1
315+
type: string
316+
managedClusterArn:
317+
description: |-
318+
The arn of the managed cluster (ie: an EKS cluster). This will be required to generate the md5hash which will be used as a suffix to create IAM role on hub
319+
as well as used by kluslerlet-agent, to assume role suffixed with the md5hash, on startup.
320+
Example - arn:eks:us-west-2:12345678910:cluster/managed-cluster1.
321+
minLength: 1
314322
type: string
315323
type: object
316324
type: object

operator/v1/types_klusterlet.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,14 @@ type AwsIrsa struct {
193193
// The arn of the hub cluster (ie: an EKS cluster). This will be required to pass information to hub, which hub will use to create IAM identities for this klusterlet.
194194
// Example - arn:eks:us-west-2:12345678910:cluster/hub-cluster1.
195195
// +required
196+
// +kubebuilder:validation:MinLength=1
196197
HubClusterArn string `json:"hubClusterArn"`
198+
// The arn of the managed cluster (ie: an EKS cluster). This will be required to generate the md5hash which will be used as a suffix to create IAM role on hub
199+
// as well as used by kluslerlet-agent, to assume role suffixed with the md5hash, on startup.
200+
// Example - arn:eks:us-west-2:12345678910:cluster/managed-cluster1.
201+
// +required
202+
// +kubebuilder:validation:MinLength=1
203+
ManagedClusterArn string `json:"managedClusterArn"`
197204
}
198205

199206
type TypeBootstrapKubeConfigs string

operator/v1/zz_generated.swagger_doc_generated.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)