Skip to content

Commit 08d8638

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

3 files changed

+6
-1
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ 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+
type: string
206208
registrationImagePullSpec:
207209
description: RegistrationImagePullSpec represents the desired image configuration of registration agent. quay.io/open-cluster-management.io/registration:latest will be used if unspecified.
208210
type: string

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

+2
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ 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+
type: string
315317
type: object
316318
type: object
317319
type: object

operator/v1/types_klusterlet.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ 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-
HubClusterArn string `json:"hubClusterArn"`
196+
HubClusterArn string `json:"hubClusterArn"`
197+
ManagedClusterArn string `json:"managedClusterArn"`
197198
}
198199

199200
type TypeBootstrapKubeConfigs string

0 commit comments

Comments
 (0)