From f6c65820279078afbe536d5a6012e0b3badde3c5 Mon Sep 17 00:00:00 2001 From: Qing Hao Date: Tue, 8 Oct 2024 16:10:48 +0800 Subject: [PATCH] add omitempty to RegistrationDriver field (#343) Signed-off-by: haoqing0110 --- operator/v1/types_klusterlet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/operator/v1/types_klusterlet.go b/operator/v1/types_klusterlet.go index 8e89b4bdb..81863e53e 100644 --- a/operator/v1/types_klusterlet.go +++ b/operator/v1/types_klusterlet.go @@ -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.