Skip to content

Commit bda1321

Browse files
dtclxy64suvaanshkumaramrcoder
authored
✨Updated clustermanager API spec and generated files for spec change. (#355)
* Updated clustermanager API spec and generated files for spec change. Signed-off-by: EmilyL <[email protected]> * Renaming the authDriver and updating comments Signed-off-by: Amrutha <[email protected]> * Added field in AUthDriver to support managed cluster identity creator role ARN Signed-off-by: Amrutha <[email protected]> * Updating the AuthDriver to contain HubClusterArn Signed-off-by: Amrutha <[email protected]> * Adding generated files Signed-off-by: Amrutha <[email protected]> * Renaming AuthDriver to RegistrationDriverHub Signed-off-by: Amrutha <[email protected]> * Adding generated crd file Signed-off-by: Amrutha <[email protected]> * Adding listType and listMapKey annotations Signed-off-by: Amrutha <[email protected]> --------- Signed-off-by: EmilyL <[email protected]> Signed-off-by: Amrutha <[email protected]> Co-authored-by: Suvaansh <[email protected]> Co-authored-by: Amrutha <[email protected]>
1 parent 1a5e25a commit bda1321

4 files changed

+75
-2
lines changed

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

+22
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,28 @@ spec:
255255
- feature
256256
type: object
257257
type: array
258+
registrationDrivers:
259+
description: |-
260+
RegistrationDrivers represent the list of hub registration drivers that contain information used by hub to initialize the hub cluster
261+
A RegistrationDriverHub contains details of authentication type and the hub cluster ARN
262+
items:
263+
properties:
264+
authType:
265+
default: csr
266+
description: Type of the authentication used by hub to initialize
267+
the Hub cluster. Possible values are csr and awsirsa.
268+
enum:
269+
- csr
270+
- awsirsa
271+
type: string
272+
hubClusterArn:
273+
description: This represents the hub cluster ARN
274+
type: string
275+
type: object
276+
type: array
277+
x-kubernetes-list-map-keys:
278+
- authType
279+
x-kubernetes-list-type: map
258280
type: object
259281
registrationImagePullSpec:
260282
default: quay.io/open-cluster-management/registration

operator/v1/types_clustermanager.go

+20
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,26 @@ type RegistrationHubConfiguration struct {
108108
// he can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.
109109
// +optional
110110
FeatureGates []FeatureGate `json:"featureGates,omitempty"`
111+
112+
// RegistrationDrivers represent the list of hub registration drivers that contain information used by hub to initialize the hub cluster
113+
// A RegistrationDriverHub contains details of authentication type and the hub cluster ARN
114+
// +optional
115+
// +listType=map
116+
// +listMapKey=authType
117+
RegistrationDrivers []RegistrationDriverHub `json:"registrationDrivers,omitempty"`
118+
}
119+
120+
type RegistrationDriverHub struct {
121+
122+
// Type of the authentication used by hub to initialize the Hub cluster. Possible values are csr and awsirsa.
123+
// +required
124+
// +kubebuilder:default:=csr
125+
// +kubebuilder:validation:Enum=csr;awsirsa
126+
AuthType string `json:"authType,omitempty"`
127+
128+
// This represents the hub cluster ARN
129+
// +optional
130+
HubClusterArn string `json:"hubClusterArn,omitempty"`
111131
}
112132

113133
type WorkConfiguration struct {

operator/v1/zz_generated.deepcopy.go

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

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

0 commit comments

Comments
 (0)