Fix apiversion slash

This commit is contained in:
jregan
2020-12-17 07:56:27 -08:00
parent 0aa250c6e2
commit bd27d5f8bb
7 changed files with 163 additions and 33 deletions

View File

@@ -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