Skip to content

Commit 9c2c9b7

Browse files
committed
Addressing PR comment
Signed-off-by: “Jeffrey <[email protected]>
1 parent 3c2b9d7 commit 9c2c9b7

4 files changed

+15
-15
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -269,19 +269,19 @@ spec:
269269
- csr
270270
- awsirsa
271271
type: string
272+
autoApprovedIdentities:
273+
description: |-
274+
For csr authentication type, AutoApprovedIdentities represent a list of approved users
275+
For awsirsa authentication type, AutoApprovedIdentities represent a list of approved arn patterns
276+
items:
277+
type: string
278+
type: array
272279
hubClusterArn:
273280
description: |-
274281
This represents the hub cluster ARN
275282
Example - arn:eks:us-west-2:12345678910:cluster/hub-cluster1
276283
pattern: ^arn:aws:eks:([a-zA-Z0-9-]+):(\d{12}):cluster/([a-zA-Z0-9-]+)$
277284
type: string
278-
identities:
279-
description: |-
280-
For csr authentication type, Identities represent a list of approved users
281-
For awsirsa authentication type, Identities represent a list of approved arn patterns
282-
items:
283-
type: string
284-
type: array
285285
type: object
286286
type: array
287287
x-kubernetes-list-map-keys:

operator/v1/types_clustermanager.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ type RegistrationDriverHub struct {
131131
// +kubebuilder:validation:Pattern=`^arn:aws:eks:([a-zA-Z0-9-]+):(\d{12}):cluster/([a-zA-Z0-9-]+)$`
132132
HubClusterArn string `json:"hubClusterArn,omitempty"`
133133

134-
// For csr authentication type, Identities represent a list of approved users
135-
// For awsirsa authentication type, Identities represent a list of approved arn patterns
134+
// For csr authentication type, AutoApprovedIdentities represent a list of approved users
135+
// For awsirsa authentication type, AutoApprovedIdentities represent a list of approved arn patterns
136136
// +optional
137-
Identities []string `json:"identities,omitempty"`
137+
AutoApprovedIdentities []string `json:"autoApprovedIdentities,omitempty"`
138138
}
139139

140140
type WorkConfiguration struct {

operator/v1/zz_generated.deepcopy.go

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

operator/v1/zz_generated.swagger_doc_generated.go

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

0 commit comments

Comments
 (0)