Skip to content

Commit b758057

Browse files
authored
Merge pull request #390 from haiyanmeng/patch
Add a kubebuilder marker to patches to preserve unknow fields
2 parents 83bd9c0 + 62a1ad7 commit b758057

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/patterns/addon/pkg/apis/v1alpha1/common_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ type Patchable interface {
5757

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

0 commit comments

Comments
 (0)