mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
Undo wholesale replacement of PatchesJson6902.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ func determineFieldOrder() []string {
|
|||||||
"CommonLabels",
|
"CommonLabels",
|
||||||
"CommonAnnotations",
|
"CommonAnnotations",
|
||||||
"PatchesStrategicMerge",
|
"PatchesStrategicMerge",
|
||||||
|
"PatchesJson6902",
|
||||||
"Patches",
|
"Patches",
|
||||||
"ConfigMapGenerator",
|
"ConfigMapGenerator",
|
||||||
"SecretGenerator",
|
"SecretGenerator",
|
||||||
|
|||||||
Reference in New Issue
Block a user