mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Kyaml anchor failure test.
This commit is contained in:
@@ -289,6 +289,34 @@ functionConfig:
|
||||
`,
|
||||
instance: kio.ByteReadWriter{FunctionConfig: yaml.MustParse(`c: d`)},
|
||||
},
|
||||
{
|
||||
name: "anchors_not_inflated",
|
||||
input: `
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: foo
|
||||
data:
|
||||
color: &color-used blue
|
||||
feeling: *color-used
|
||||
`,
|
||||
// If YAML anchors were automagically inflated,
|
||||
// the expectedOutput would be something like
|
||||
//
|
||||
// kind: ConfigMap
|
||||
// metadata:
|
||||
// name: foo
|
||||
// data:
|
||||
// color: blue
|
||||
// feeling: blue
|
||||
expectedOutput: `
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: foo
|
||||
data:
|
||||
color: &color-used blue
|
||||
feeling: *color-used
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
||||
for i := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user