mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
fix kyaml issue where dropping Style created issues
dropping the node style creates a compatibility issue where quotes around "on" are dropped because yaml.v3 interprets it as a string. other yaml parsers interpret on as a bool value, and parse it as a bool rather than string. fix: retain the original style so it is kept as quoted. - fmt: don't drop the styles - merge2: keep the style when merging elements - setting a field: if changing the value of a scalar field, retain its style by default
This commit is contained in:
@@ -174,8 +174,7 @@ kind: Deployment
|
||||
containers:
|
||||
- name: foo
|
||||
image: foo:bar
|
||||
command:
|
||||
- run2.sh
|
||||
command: ['run2.sh']
|
||||
`, nil},
|
||||
|
||||
//
|
||||
@@ -206,8 +205,7 @@ kind: Deployment
|
||||
containers:
|
||||
- name: foo
|
||||
image: foo:bar
|
||||
command:
|
||||
- run2.sh
|
||||
command: ['run2.sh']
|
||||
`, nil},
|
||||
|
||||
//
|
||||
@@ -239,8 +237,7 @@ kind: Deployment
|
||||
containers:
|
||||
- name: foo
|
||||
image: foo:bar
|
||||
command:
|
||||
- run2.sh
|
||||
command: ['run2.sh']
|
||||
`, nil},
|
||||
|
||||
//
|
||||
@@ -367,8 +364,7 @@ kind: Deployment
|
||||
containers:
|
||||
- name: foo
|
||||
image: foo:bar
|
||||
command:
|
||||
- run.sh
|
||||
command: ['run.sh']
|
||||
`, nil},
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user