mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Treat empty strings as string type instead of null type
This commit is contained in:
@@ -70,6 +70,9 @@ func IsYaml1_1NonString(node *Node) bool {
|
||||
}
|
||||
|
||||
func IsValueNonString(value string) bool {
|
||||
if value == "" {
|
||||
return false
|
||||
}
|
||||
if strings.Contains(value, "\n") {
|
||||
// multi-line strings will fail to unmarshal
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user