mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Keep empty map in kustomize output
This commit is contained in:
@@ -302,7 +302,7 @@ kind: Deployment
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers: {}
|
||||
containers: []
|
||||
`,
|
||||
dest: `
|
||||
apiVersion: apps/v1
|
||||
|
||||
@@ -262,7 +262,7 @@ kind: Deployment
|
||||
{description: `remove list -- empty in src`,
|
||||
source: `
|
||||
kind: Deployment
|
||||
items: {}
|
||||
items: []
|
||||
`,
|
||||
dest: `
|
||||
kind: Deployment
|
||||
@@ -273,7 +273,7 @@ items:
|
||||
`,
|
||||
expected: `
|
||||
kind: Deployment
|
||||
items: {}
|
||||
items: []
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -167,8 +167,8 @@ spec: {}
|
||||
expected: `
|
||||
kind: Deployment
|
||||
spec:
|
||||
foo: bar1
|
||||
baz: buz
|
||||
foo: bar1
|
||||
`,
|
||||
},
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ kind: Deployment
|
||||
{description: `remove scalar -- empty in src`,
|
||||
source: `
|
||||
kind: Deployment
|
||||
field: {}
|
||||
field: null
|
||||
`,
|
||||
dest: `
|
||||
kind: Deployment
|
||||
@@ -99,7 +99,6 @@ field: value1
|
||||
`,
|
||||
expected: `
|
||||
kind: Deployment
|
||||
field: {}
|
||||
`,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user