Skip to content

Commit f6c6582

Browse files
authored
add omitempty to RegistrationDriver field (#343)
Signed-off-by: haoqing0110 <[email protected]>
1 parent ab092a6 commit f6c6582

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator/v1/types_klusterlet.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,10 @@ type RegistrationConfiguration struct {
180180

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

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

0 commit comments

Comments
 (0)