Skip to content

Commit

Permalink
add omitempty to RegistrationDriver field (#343)
Browse files Browse the repository at this point in the history
Signed-off-by: haoqing0110 <[email protected]>
  • Loading branch information
haoqing0110 authored Oct 8, 2024
1 parent ab092a6 commit f6c6582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion operator/v1/types_klusterlet.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ type RegistrationConfiguration struct {

type RegistrationDriver struct {
// Type of the authentication used by managedcluster to register as well as pull work from hub. Possible values are csr and awsirsa.
// +required
// +kubebuilder:default:=csr
// +kubebuilder:validation:Enum=csr;awsirsa
AuthType string `json:"authType"`
AuthType string `json:"authType,omitempty"`

// Contain the details required for registering with hub cluster (ie: an EKS cluster) using AWS IAM roles for service account.
// This is required only when the authType is awsirsa.
Expand Down

0 comments on commit f6c6582

Please sign in to comment.