mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 09:02:53 +00:00
Fix apiversion slash
This commit is contained in:
@@ -804,6 +804,34 @@ spec:
|
||||
errorExpected bool
|
||||
errorMsg string
|
||||
}{
|
||||
"clown": {
|
||||
base: []string{`apiVersion: v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: clown
|
||||
spec:
|
||||
numReplicas: 1
|
||||
`,
|
||||
},
|
||||
patches: []string{`apiVersion: v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: clown
|
||||
spec:
|
||||
numReplicas: 999
|
||||
`,
|
||||
},
|
||||
errorExpected: false,
|
||||
expected: []string{
|
||||
`apiVersion: v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: clown
|
||||
spec:
|
||||
numReplicas: 999
|
||||
`,
|
||||
},
|
||||
},
|
||||
"confusion": {
|
||||
base: []string{`apiVersion: example.com/v1
|
||||
kind: Foo
|
||||
|
||||
Reference in New Issue
Block a user