kubectl stops rendering List as suffix kind name for CRD resources

This commit is contained in:
Di Xu
2018-04-13 10:46:38 +08:00
parent 44ede98e94
commit 82cc3b5d59
2 changed files with 13 additions and 2 deletions

View File

@@ -394,4 +394,16 @@ items:
`))
Expect(err.Error()).To(Equal("[kind not set, apiVersion not set]"))
})
It("is fine with crd resource with List as a suffix kind name, which may not be a list of resources", func() {
err := validator.ValidateBytes([]byte(`
apiVersion: fake.com/v1
kind: FakeList
metadata:
name: fake
spec:
foo: bar
`))
Expect(err).To(BeNil())
})
})