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
Signed-off-by: EmilyL <[email protected]>
  • Loading branch information
suvaanshkumar authored and dtclxy64 committed Jan 3, 2025
1 parent 0ba6809 commit 3f8f9d9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,18 @@ spec:
- feature
type: object
type: array
registrationDriverHub:
description: This provides details to initialize Hub cluster
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
type: object
type: object
registrationImagePullSpec:
default: quay.io/open-cluster-management/registration
Expand Down
13 changes: 13 additions & 0 deletions operator/v1/types_clustermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ 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"`

// This provides details to initialize Hub cluster
// +optional
RegistrationDriverHub RegistrationDriverHub `json:"registrationDriverHub,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"`
}

type WorkConfiguration struct {
Expand Down
17 changes: 17 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.

13 changes: 11 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 3f8f9d9

Please sign in to comment.