Add AnchorsAweigh option to ByteReader to toggle YAML alias/anchor expansion

This commit is contained in:
monopole
2021-09-15 16:20:53 -07:00
parent c47fc48607
commit dce4ea5846
4 changed files with 111 additions and 32 deletions

View File

@@ -639,17 +639,14 @@ data:
feeling: *color-used
`),
exp: expected{
// TODO(#3675) : the anchor should be replaced.
// Anchors are replaced in the List above due to a different code path
// (when the list is inlined).
out: []string{`
apiVersion: v1
kind: ConfigMap
metadata:
name: wildcard
data:
color: &color-used blue
feeling: *color-used
color: blue
feeling: blue
`},
},
},