Skip to content

Commit

Permalink
Remove the CEL rule for resourceID in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
maqiuyujoyce committed Dec 19, 2024
1 parent 80e33b5 commit 42f1466
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dev/tools/controllerbuilder/template/apis/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"` + "`" + `
Expand Down

0 comments on commit 42f1466

Please sign in to comment.