mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 10:00:56 +00:00
Fix copy comments for Folded style scalar nodes
This commit is contained in:
@@ -286,6 +286,29 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
items:
|
||||
- a # comment
|
||||
`,
|
||||
},
|
||||
|
||||
{
|
||||
name: "copy_comments_folded_style",
|
||||
from: `
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
data:
|
||||
somekey: "012345678901234567890123456789012345678901234567890123456789012345678901234" # x
|
||||
`,
|
||||
to: `
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
data:
|
||||
somekey: >-
|
||||
012345678901234567890123456789012345678901234567890123456789012345678901234
|
||||
`,
|
||||
expected: `
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
data:
|
||||
somekey: "012345678901234567890123456789012345678901234567890123456789012345678901234" # x
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user