mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #4134 from phanimarupaka/FieldOrderingForNullFields
Preserve field order: Add test for null value
This commit is contained in:
@@ -183,6 +183,27 @@ pipeline:
|
|||||||
configPath: setters.yaml
|
configPath: setters.yaml
|
||||||
- image: set-namespace:v0.1
|
- image: set-namespace:v0.1
|
||||||
configPath: ns.yaml
|
configPath: ns.yaml
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "sort fields with null value",
|
||||||
|
from: `apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: workspaces.app.terraform.io
|
||||||
|
`,
|
||||||
|
to: `apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: workspaces.app.terraform.io
|
||||||
|
creationTimestamp: null
|
||||||
|
`,
|
||||||
|
expected: `apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: workspaces.app.terraform.io
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user