diff --git a/apis/apps/v1alpha1/clusterdefinition_types.go b/apis/apps/v1alpha1/clusterdefinition_types.go index 1a1c974aeb0..a50e1d780ab 100644 --- a/apis/apps/v1alpha1/clusterdefinition_types.go +++ b/apis/apps/v1alpha1/clusterdefinition_types.go @@ -50,6 +50,7 @@ type ClusterDefinitionSpec struct { // Existing usage should be updated to the current preferred approach to avoid compatibility issues in future releases. // // +kubebuilder:deprecatedversion:warning="This field has been deprecated since 0.9.0" + // +kubebuilder:default={} // +patchMergeKey=name // +patchStrategy=merge,retainKeys // +listType=map diff --git a/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml b/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml index 7abf927a0f7..8b48de72909 100644 --- a/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml +++ b/config/crd/bases/apps.kubeblocks.io_clusterdefinitions.yaml @@ -72,6 +72,7 @@ spec: description: ClusterDefinitionSpec defines the desired state of ClusterDefinition. properties: componentDefs: + default: [] description: |- Provides the definitions for the cluster components. diff --git a/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml b/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml index 7abf927a0f7..8b48de72909 100644 --- a/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml +++ b/deploy/helm/crds/apps.kubeblocks.io_clusterdefinitions.yaml @@ -72,6 +72,7 @@ spec: description: ClusterDefinitionSpec defines the desired state of ClusterDefinition. properties: componentDefs: + default: [] description: |- Provides the definitions for the cluster components.