diff --git a/pkg/action/action_test.go b/pkg/action/action_test.go index d3adf0a45..d52a76482 100644 --- a/pkg/action/action_test.go +++ b/pkg/action/action_test.go @@ -459,6 +459,11 @@ func TestFixDocSeparators(t *testing.T) { input: "data:\n key: ---------value\n", expected: "data:\n key: ---------value\n", }, + { + name: "block scalar with dashes in quoted string", + input: "---\napiVersion: v1\nkind: ConfigMap\ndata:\n script.sh: |\n echo \"------------------------------------\"\n", + expected: "---\napiVersion: v1\nkind: ConfigMap\ndata:\n script.sh: |\n echo \"------------------------------------\"\n", + }, { name: "realistic multi-doc template output", input: "apiVersion: v1\nkind: Deployment\n---\napiVersion: v1\nkind: Ingress\n---apiVersion: v1\nkind: Service\n",