Skip adding nameprefix for CRD

This commit is contained in:
Jingfang Liu
2018-06-08 09:36:05 -07:00
parent 6b5569d5ed
commit 5f75564ff5
3 changed files with 42 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ var cmap = schema.GroupVersionKind{Version: "v1", Kind: "ConfigMap"}
var deploy = schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "Deployment"}
var statefulset = schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSet"}
var foo = schema.GroupVersionKind{Group: "example.com", Version: "v1", Kind: "Foo"}
var crd = schema.GroupVersionKind{Group: "apiwctensions.k8s.io", Version: "v1beta1", Kind: "CustomResourceDefinition"}
func TestLabelsRun(t *testing.T) {
m := resmap.ResMap{