File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ var skipNamespacePathConfigs = []PathConfig{
50
50
Kind : "ClusterRole" ,
51
51
},
52
52
},
53
+ {
54
+ GroupVersionKind : & schema.GroupVersionKind {
55
+ Kind : "CustomResourceDefinition" ,
56
+ },
57
+ },
53
58
}
54
59
55
60
var _ Transformer = & namespaceTransformer {}
Original file line number Diff line number Diff line change @@ -94,6 +94,14 @@ func TestNamespaceRun(t *testing.T) {
94
94
},
95
95
},
96
96
}),
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
+ }),
97
105
}
98
106
expected := resmap.ResMap {
99
107
resource .NewResId (ns , "ns1" ): resource .NewResourceFromMap (
@@ -165,6 +173,14 @@ func TestNamespaceRun(t *testing.T) {
165
173
},
166
174
},
167
175
}),
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
+ }),
168
184
}
169
185
170
186
nst := NewNamespaceTransformer ("test" )
You can’t perform that action at this time.
0 commit comments