mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
In kyaml, loosen interpretation of string node and add tests.
This commit is contained in:
@@ -51,7 +51,8 @@ func IsYNodeEmptyDoc(n *yaml.Node) bool {
|
||||
}
|
||||
|
||||
func IsYNodeString(n *yaml.Node) bool {
|
||||
return n.Kind == yaml.ScalarNode && n.Tag == NodeTagString
|
||||
return n.Kind == yaml.ScalarNode &&
|
||||
(n.Tag == NodeTagString || n.Tag == NodeTagEmpty)
|
||||
}
|
||||
|
||||
// IsYNodeZero is true if all the public fields in the Node are empty.
|
||||
|
||||
Reference in New Issue
Block a user