Replace folding block with multiline string to workaround https://github.com/kubernetes-sigs/kustomize/issues/4201 There are also other places where this bug is hit, but extra generated newline is not significant. Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com>