Skip to content

Commit

Permalink
Merge pull request #390 from haiyanmeng/patch
Browse files Browse the repository at this point in the history
Add a kubebuilder marker to patches to preserve unknow fields
  • Loading branch information
k8s-ci-robot committed Jun 3, 2024
2 parents 83bd9c0 + 62a1ad7 commit b758057
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 b758057

Please sign in to comment.