From 42f1466d8cba4477c915cee3f37c76148e1e7c54 Mon Sep 17 00:00:00 2001 From: Joyce Ma Date: Thu, 19 Dec 2024 04:08:49 +0000 Subject: [PATCH] Remove the CEL rule for resourceID in the template --- dev/tools/controllerbuilder/template/apis/types.go | 1 - 1 file changed, 1 deletion(-) diff --git a/dev/tools/controllerbuilder/template/apis/types.go b/dev/tools/controllerbuilder/template/apis/types.go index 6821e94681e..35a04921b29 100644 --- a/dev/tools/controllerbuilder/template/apis/types.go +++ b/dev/tools/controllerbuilder/template/apis/types.go @@ -37,7 +37,6 @@ var {{ .Kind }}GVK = GroupVersion.WithKind("{{ .Kind }}") // +kcc:proto={{ .KindProtoTag }} {{- end }} type {{ .Kind }}Spec struct { - // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ResourceID field is immutable" // Immutable. // The {{ .Kind }} name. If not given, the metadata.name will be used. ResourceID *string ` + "`" + `json:"resourceID,omitempty"` + "`" + `