diff --git a/api/types/fix.go b/api/types/fix.go index ed386a133..de70467ed 100644 --- a/api/types/fix.go +++ b/api/types/fix.go @@ -14,8 +14,7 @@ import ( // new field names. func FixKustomizationPreUnmarshalling(data []byte) ([]byte, error) { deprecatedFieldsMap := map[string]string{ - "imageTags:": "images:", - "patchesJson6902": "patches", + "imageTags:": "images:", } for oldname, newname := range deprecatedFieldsMap { pattern := regexp.MustCompile(oldname) diff --git a/kustomize/internal/commands/kustfile/kustomizationfile.go b/kustomize/internal/commands/kustfile/kustomizationfile.go index b7b34f99e..f347e368a 100644 --- a/kustomize/internal/commands/kustfile/kustomizationfile.go +++ b/kustomize/internal/commands/kustfile/kustomizationfile.go @@ -47,6 +47,7 @@ func determineFieldOrder() []string { "CommonLabels", "CommonAnnotations", "PatchesStrategicMerge", + "PatchesJson6902", "Patches", "ConfigMapGenerator", "SecretGenerator",