mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Delete penultimate use of Patches field.
This commit is contained in:
@@ -124,13 +124,16 @@ type Kustomization struct {
|
||||
// DealWithDeprecatedFields should be called immediately after
|
||||
// loading from storage.
|
||||
func (k *Kustomization) DealWithDeprecatedFields() {
|
||||
// The Patches field, meant to hold StrategicMerge patches,
|
||||
// is deprecated. Append anything found there to the
|
||||
// PatchesStrategicMerge field.
|
||||
// This happened when the PatchesJson6902 field was introduced.
|
||||
k.PatchesStrategicMerge = patch.Append(
|
||||
k.PatchesStrategicMerge, k.Patches...)
|
||||
k.Patches = []string{}
|
||||
if len(k.Patches) > 0 {
|
||||
// The Patches field, meant to hold strategic merge
|
||||
// patches, is deprecated. Append anything found
|
||||
// there to the PatchesStrategicMerge field.
|
||||
// This happened when the PatchesJson6902 field
|
||||
// was introduced.
|
||||
k.PatchesStrategicMerge = patch.Append(
|
||||
k.PatchesStrategicMerge, k.Patches...)
|
||||
k.Patches = []string{}
|
||||
}
|
||||
}
|
||||
|
||||
// ConfigMapArgs contains the metadata of how to generate a configmap.
|
||||
|
||||
Reference in New Issue
Block a user