Skip to content

Commit 4281b76

Browse files
jeffw17amrcoder
andauthored
✨ Update clustermanager API spec for auto approval identities (#357)
* Update clustermanager API spec for auto approval identities Signed-off-by: “Jeffrey <[email protected]> * Adding Identities as part of RegistrationDriverHub Signed-off-by: Amrutha <[email protected]> * Addressing PR comment Signed-off-by: “Jeffrey <[email protected]> --------- Signed-off-by: “Jeffrey <[email protected]> Signed-off-by: Amrutha <[email protected]> Co-authored-by: Amrutha <[email protected]>
1 parent 3a595d6 commit 4281b76

4 files changed

+23
-3
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,13 @@ 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

operator/v1/types_clustermanager.go

+5
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ type RegistrationDriverHub struct {
130130
// +optional
131131
// +kubebuilder:validation:Pattern=`^arn:aws:eks:([a-zA-Z0-9-]+):(\d{12}):cluster/([a-zA-Z0-9-]+)$`
132132
HubClusterArn string `json:"hubClusterArn,omitempty"`
133+
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
136+
// +optional
137+
AutoApprovedIdentities []string `json:"autoApprovedIdentities,omitempty"`
133138
}
134139

135140
type WorkConfiguration struct {

operator/v1/zz_generated.deepcopy.go

+8-1
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-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)