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. // new field names.
func FixKustomizationPreUnmarshalling(data []byte) ([]byte, error) { func FixKustomizationPreUnmarshalling(data []byte) ([]byte, error) {
deprecatedFieldsMap := map[string]string{ deprecatedFieldsMap := map[string]string{
"imageTags:": "images:", "imageTags:": "images:",
"patchesJson6902": "patches",
} }
for oldname, newname := range deprecatedFieldsMap { for oldname, newname := range deprecatedFieldsMap {
pattern := regexp.MustCompile(oldname) pattern := regexp.MustCompile(oldname)

View File

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