File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1235,7 +1235,7 @@ metadata:
1235
1235
1236
1236
ginkgo .It ("should detect unknown metadata fields in both the root and embedded object of a CR" , func (ctx context.Context ) {
1237
1237
ginkgo .By ("prepare CRD with x-kubernetes-embedded-resource: true" )
1238
- opt := func (crd * apiextensionsv1.CustomResourceDefinition ) {
1238
+ testCRD , err := crd . CreateTestCRD ( f , func (crd * apiextensionsv1.CustomResourceDefinition ) {
1239
1239
props := & apiextensionsv1.JSONSchemaProps {}
1240
1240
if err := yaml .Unmarshal (schemaFooEmbedded , props ); err != nil {
1241
1241
framework .Failf ("failed to unmarshal schema: %v" , err )
@@ -1250,10 +1250,7 @@ metadata:
1250
1250
},
1251
1251
},
1252
1252
}
1253
- }
1254
-
1255
- group := fmt .Sprintf ("%s.example.com" , f .BaseName )
1256
- testCRD , err := crd .CreateMultiVersionTestCRD (f , group , opt )
1253
+ })
1257
1254
if err != nil {
1258
1255
framework .Failf ("failed to create test CRD: %v" , err )
1259
1256
}
You can’t perform that action at this time.
0 commit comments