mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 02:20:53 +00:00
enable preserving order with generatorOptions
This commit is contained in:
@@ -40,7 +40,7 @@ func TestFieldOrder(t *testing.T) {
|
||||
"PatchesJson6902",
|
||||
"ConfigMapGenerator",
|
||||
"SecretGenerator",
|
||||
// "GeneratorOptions",
|
||||
"GeneratorOptions",
|
||||
"Vars",
|
||||
"ImageTags",
|
||||
}
|
||||
@@ -219,6 +219,9 @@ BASES:
|
||||
patchesStrategicMerge:
|
||||
- service.yaml
|
||||
- pod.yaml
|
||||
# generator options
|
||||
generatorOptions:
|
||||
disableHash: true
|
||||
`)
|
||||
|
||||
expected := []byte(`
|
||||
@@ -254,6 +257,9 @@ bases:
|
||||
patchesStrategicMerge:
|
||||
- service.yaml
|
||||
- pod.yaml
|
||||
# generator options
|
||||
generatorOptions:
|
||||
disableHash: true
|
||||
`)
|
||||
fSys := fs.MakeFakeFS()
|
||||
fSys.WriteTestKustomizationWith(kustomizationContentWithComments)
|
||||
|
||||
Reference in New Issue
Block a user