Undo wholesale replacement of PatchesJson6902.

This commit is contained in:
Eyob Tefera
2020-08-10 17:53:30 +00:00
parent bd7d0f864b
commit eee581462c
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -47,6 +47,7 @@ func determineFieldOrder() []string {
"CommonLabels",
"CommonAnnotations",
"PatchesStrategicMerge",
"PatchesJson6902",
"Patches",
"ConfigMapGenerator",
"SecretGenerator",