Skip to content

Commit

Permalink
chore: set clusterdefinition.componentDefs default to empty list (#8227)
Browse files Browse the repository at this point in the history
Co-authored-by: wusai80 <wusai80@gmail.com>
  • Loading branch information
shanshanying and wusai80 authored Sep 29, 2024
1 parent 6773818 commit 6a7d16b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/apps/v1alpha1/clusterdefinition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ spec:
description: ClusterDefinitionSpec defines the desired state of ClusterDefinition.
properties:
componentDefs:
default: []
description: |-
Provides the definitions for the cluster components.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ spec:
description: ClusterDefinitionSpec defines the desired state of ClusterDefinition.
properties:
componentDefs:
default: []
description: |-
Provides the definitions for the cluster components.

Expand Down

0 comments on commit 6a7d16b

Please sign in to comment.