diff --git a/input/v1beta1/resource_select.go b/input/v1beta1/resource_select.go index 49dc69e..3a687ba 100644 --- a/input/v1beta1/resource_select.go +++ b/input/v1beta1/resource_select.go @@ -226,23 +226,3 @@ const ( FromFieldPathPolicyOptional FromFieldPathPolicy = "Optional" FromFieldPathPolicyRequired FromFieldPathPolicy = "Required" ) - -// A PatchPolicy configures the specifics of patching behaviour. -type PatchPolicy struct { - // FromFieldPath specifies how to patch from a field path. The default is - // 'Optional', which means the patch will be a no-op if the specified - // fromFieldPath does not exist. Use 'Required' if the patch should fail if - // the specified path does not exist. - // +kubebuilder:validation:Enum=Optional;Required - // +optional - FromFieldPath *FromFieldPathPolicy `json:"fromFieldPath,omitempty"` - MergeOptions *xpv1.MergeOptions `json:"mergeOptions,omitempty"` -} - -// GetFromFieldPathPolicy returns the FromFieldPathPolicy for this PatchPolicy, defaulting to FromFieldPathPolicyOptional if not specified. -func (pp *PatchPolicy) GetFromFieldPathPolicy() FromFieldPathPolicy { - if pp == nil || pp.FromFieldPath == nil { - return FromFieldPathPolicyOptional - } - return *pp.FromFieldPath -} diff --git a/input/v1beta1/zz_generated.deepcopy.go b/input/v1beta1/zz_generated.deepcopy.go index d75d0a0..3a3ea99 100644 --- a/input/v1beta1/zz_generated.deepcopy.go +++ b/input/v1beta1/zz_generated.deepcopy.go @@ -87,31 +87,6 @@ func (in *InputSpec) DeepCopy() *InputSpec { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PatchPolicy) DeepCopyInto(out *PatchPolicy) { - *out = *in - if in.FromFieldPath != nil { - in, out := &in.FromFieldPath, &out.FromFieldPath - *out = new(FromFieldPathPolicy) - **out = **in - } - if in.MergeOptions != nil { - in, out := &in.MergeOptions, &out.MergeOptions - *out = new(v1.MergeOptions) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchPolicy. -func (in *PatchPolicy) DeepCopy() *PatchPolicy { - if in == nil { - return nil - } - out := new(PatchPolicy) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Policy) DeepCopyInto(out *Policy) { *out = *in