mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Add options, keep seqindent annotation equivalent to index annotation
This commit is contained in:
@@ -289,47 +289,6 @@ functionConfig:
|
||||
`,
|
||||
instance: kio.ByteReadWriter{FunctionConfig: yaml.MustParse(`c: d`)},
|
||||
},
|
||||
{
|
||||
name: "ResourceList indentation doesn't matter",
|
||||
input: `
|
||||
apiVersion: config.kubernetes.io/v1alpha1
|
||||
kind: ResourceList
|
||||
items:
|
||||
- kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
internal.config.kubernetes.io/seqindent: "compact"
|
||||
spec:
|
||||
- foo
|
||||
- bar
|
||||
- kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
internal.config.kubernetes.io/seqindent: "wide"
|
||||
spec:
|
||||
- foo
|
||||
- bar
|
||||
`,
|
||||
expectedOutput: `
|
||||
apiVersion: config.kubernetes.io/v1alpha1
|
||||
kind: ResourceList
|
||||
items:
|
||||
- kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
internal.config.kubernetes.io/seqindent: "compact"
|
||||
spec:
|
||||
- foo
|
||||
- bar
|
||||
- kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
internal.config.kubernetes.io/seqindent: "wide"
|
||||
spec:
|
||||
- foo
|
||||
- bar
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
||||
for i := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user