Skip to content

Commit

Permalink
Add a kubebuilder marker to patches to preserve unknow fields
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyanmeng committed Jun 3, 2024
1 parent 83bd9c0 commit 62a1ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/patterns/addon/pkg/apis/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ type Patchable interface {

// +k8s:deepcopy-gen=true
type PatchSpec struct {
// +kubebuilder:pruning:PreserveUnknownFields
Patches []*runtime.RawExtension `json:"patches,omitempty"`
}

0 comments on commit 62a1ad7

Please sign in to comment.