File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ var skipNamespacePathConfigs = []PathConfig{
5050 Kind : "ClusterRole" ,
5151 },
5252 },
53+ {
54+ GroupVersionKind : & schema.GroupVersionKind {
55+ Kind : "CustomResourceDefinition" ,
56+ },
57+ },
5358}
5459
5560var _ Transformer = & namespaceTransformer {}
Original file line number Diff line number Diff line change @@ -94,6 +94,14 @@ func TestNamespaceRun(t *testing.T) {
9494 },
9595 },
9696 }),
97+ resource .NewResId (crd , "crd" ): resource .NewResourceFromMap (
98+ map [string ]interface {}{
99+ "apiVersion" : "apiextensions.k8s.io/v1beta1" ,
100+ "kind" : "CustomResourceDefinition" ,
101+ "metadata" : map [string ]interface {}{
102+ "name" : "crd" ,
103+ },
104+ }),
97105 }
98106 expected := resmap.ResMap {
99107 resource .NewResId (ns , "ns1" ): resource .NewResourceFromMap (
@@ -165,6 +173,14 @@ func TestNamespaceRun(t *testing.T) {
165173 },
166174 },
167175 }),
176+ resource .NewResId (crd , "crd" ): resource .NewResourceFromMap (
177+ map [string ]interface {}{
178+ "apiVersion" : "apiextensions.k8s.io/v1beta1" ,
179+ "kind" : "CustomResourceDefinition" ,
180+ "metadata" : map [string ]interface {}{
181+ "name" : "crd" ,
182+ },
183+ }),
168184 }
169185
170186 nst := NewNamespaceTransformer ("test" )
You can’t perform that action at this time.
0 commit comments