Skip to content

Commit

Permalink
✨Updated clustermanager API spec and generated files for spec change. (
Browse files Browse the repository at this point in the history
…#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]>
  • Loading branch information
3 people authored Jan 9, 2025
1 parent 1a5e25a commit bda1321
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,28 @@ spec:
- feature
type: object
type: array
registrationDrivers:
description: |-
RegistrationDrivers represent the list of hub registration drivers that contain information used by hub to initialize the hub cluster
A RegistrationDriverHub contains details of authentication type and the hub cluster ARN
items:
properties:
authType:
default: csr
description: Type of the authentication used by hub to initialize
the Hub cluster. Possible values are csr and awsirsa.
enum:
- csr
- awsirsa
type: string
hubClusterArn:
description: This represents the hub cluster ARN
type: string
type: object
type: array
x-kubernetes-list-map-keys:
- authType
x-kubernetes-list-type: map
type: object
registrationImagePullSpec:
default: quay.io/open-cluster-management/registration
Expand Down
20 changes: 20 additions & 0 deletions operator/v1/types_clustermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@ type RegistrationHubConfiguration struct {
// he can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false.
// +optional
FeatureGates []FeatureGate `json:"featureGates,omitempty"`

// RegistrationDrivers represent the list of hub registration drivers that contain information used by hub to initialize the hub cluster
// A RegistrationDriverHub contains details of authentication type and the hub cluster ARN
// +optional
// +listType=map
// +listMapKey=authType
RegistrationDrivers []RegistrationDriverHub `json:"registrationDrivers,omitempty"`
}

type RegistrationDriverHub struct {

// Type of the authentication used by hub to initialize the Hub cluster. Possible values are csr and awsirsa.
// +required
// +kubebuilder:default:=csr
// +kubebuilder:validation:Enum=csr;awsirsa
AuthType string `json:"authType,omitempty"`

// This represents the hub cluster ARN
// +optional
HubClusterArn string `json:"hubClusterArn,omitempty"`
}

type WorkConfiguration struct {
Expand Down
21 changes: 21 additions & 0 deletions operator/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bda1321

Please sign in to comment.