Skip to content

Commit cdcdc9b

Browse files
committed
Add managed cluster arn for the klusterlet api
Signed-off-by: Suvaansh <[email protected]>
1 parent 17751e4 commit cdcdc9b

4 files changed

+16
-1
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ 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+
managedClusterArn:
207+
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.'
208+
type: string
206209
registrationImagePullSpec:
207210
description: RegistrationImagePullSpec represents the desired image configuration of registration agent. quay.io/open-cluster-management.io/registration:latest will be used if unspecified.
208211
type: string

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

+6
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ spec:
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.
314314
type: string
315+
managedClusterArn:
316+
description: |-
317+
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
318+
as well as used by kluslerlet-agent, to assume role suffixed with the md5hash, on startup.
319+
Example - arn:eks:us-west-2:12345678910:cluster/managed-cluster1.
320+
type: string
315321
type: object
316322
type: object
317323
type: object

operator/v1/types_klusterlet.go

+5
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ type AwsIrsa struct {
194194
// Example - arn:eks:us-west-2:12345678910:cluster/hub-cluster1.
195195
// +required
196196
HubClusterArn string `json:"hubClusterArn"`
197+
// 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
198+
// as well as used by kluslerlet-agent, to assume role suffixed with the md5hash, on startup.
199+
// Example - arn:eks:us-west-2:12345678910:cluster/managed-cluster1.
200+
// +required
201+
ManagedClusterArn string `json:"managedClusterArn"`
197202
}
198203

199204
type TypeBootstrapKubeConfigs string

operator/v1/zz_generated.swagger_doc_generated.go

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

0 commit comments

Comments
 (0)