Skip to content

Commit 3639134

Browse files
Adding aa new field to clustermanager to pass list of aws tags to be added to aws resources
Signed-off-by: Gaurav Jaswal <[email protected]>
1 parent 4281b76 commit 3639134

4 files changed

+23
-3
lines changed

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,18 @@ spec:
278278
type: array
279279
hubClusterArn:
280280
description: |-
281-
This represents the hub cluster ARN
281+
This represents the hub cluster ARN. Applicable to only awsirsa authentication type.
282282
Example - arn:eks:us-west-2:12345678910:cluster/hub-cluster1
283283
pattern: ^arn:aws:eks:([a-zA-Z0-9-]+):(\d{12}):cluster/([a-zA-Z0-9-]+)$
284284
type: string
285+
tags:
286+
description: |-
287+
List of tags to be added to AWS resources created by hub while processing awsirsa registration request.
288+
Applicable to only awsirsa authentication type.
289+
Example - "product:v1:tenant:app-name=My-App"
290+
items:
291+
type: string
292+
type: array
285293
type: object
286294
type: array
287295
x-kubernetes-list-map-keys:

operator/v1/types_clustermanager.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ type RegistrationDriverHub struct {
125125
// +kubebuilder:validation:Enum=csr;awsirsa
126126
AuthType string `json:"authType,omitempty"`
127127

128-
// This represents the hub cluster ARN
128+
// This represents the hub cluster ARN. Applicable to only awsirsa authentication type.
129129
// Example - arn:eks:us-west-2:12345678910:cluster/hub-cluster1
130130
// +optional
131131
// +kubebuilder:validation:Pattern=`^arn:aws:eks:([a-zA-Z0-9-]+):(\d{12}):cluster/([a-zA-Z0-9-]+)$`
@@ -135,6 +135,12 @@ type RegistrationDriverHub struct {
135135
// For awsirsa authentication type, AutoApprovedIdentities represent a list of approved arn patterns
136136
// +optional
137137
AutoApprovedIdentities []string `json:"autoApprovedIdentities,omitempty"`
138+
139+
// List of tags to be added to AWS resources created by hub while processing awsirsa registration request.
140+
// Applicable to only awsirsa authentication type.
141+
// Example - "product:v1:tenant:app-name=My-App"
142+
// +optional
143+
Tags []string `json:"tags,omitempty"`
138144
}
139145

140146
type WorkConfiguration struct {

operator/v1/zz_generated.deepcopy.go

+5
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

+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)