Skip to content

Commit b37f754

Browse files
authored
Merge pull request #94 from tenstad/cleanup-patch-policy
chore: remove unused patch policy
2 parents 92630bd + 8f73d23 commit b37f754

2 files changed

Lines changed: 0 additions & 45 deletions

File tree

input/v1beta1/resource_select.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -226,23 +226,3 @@ const (
226226
FromFieldPathPolicyOptional FromFieldPathPolicy = "Optional"
227227
FromFieldPathPolicyRequired FromFieldPathPolicy = "Required"
228228
)
229-
230-
// A PatchPolicy configures the specifics of patching behaviour.
231-
type PatchPolicy struct {
232-
// FromFieldPath specifies how to patch from a field path. The default is
233-
// 'Optional', which means the patch will be a no-op if the specified
234-
// fromFieldPath does not exist. Use 'Required' if the patch should fail if
235-
// the specified path does not exist.
236-
// +kubebuilder:validation:Enum=Optional;Required
237-
// +optional
238-
FromFieldPath *FromFieldPathPolicy `json:"fromFieldPath,omitempty"`
239-
MergeOptions *xpv1.MergeOptions `json:"mergeOptions,omitempty"`
240-
}
241-
242-
// GetFromFieldPathPolicy returns the FromFieldPathPolicy for this PatchPolicy, defaulting to FromFieldPathPolicyOptional if not specified.
243-
func (pp *PatchPolicy) GetFromFieldPathPolicy() FromFieldPathPolicy {
244-
if pp == nil || pp.FromFieldPath == nil {
245-
return FromFieldPathPolicyOptional
246-
}
247-
return *pp.FromFieldPath
248-
}

input/v1beta1/zz_generated.deepcopy.go

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)