File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import (
32
32
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
33
33
"k8s.io/apiextensions-apiserver/pkg/apiserver/validation"
34
34
apiequality "k8s.io/apimachinery/pkg/api/equality"
35
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
35
36
"k8s.io/apimachinery/pkg/types"
36
37
utilversion "k8s.io/apimachinery/pkg/util/version"
37
38
"k8s.io/apimachinery/pkg/util/wait"
@@ -309,6 +310,10 @@ var _ = SIGDescribe("CustomResourcePublishOpenAPI [Feature:CustomResourcePublish
309
310
}
310
311
311
312
ginkgo .By ("mark a version not serverd" )
313
+ crd .Crd , err = crd .APIExtensionClient .ApiextensionsV1beta1 ().CustomResourceDefinitions ().Get (crd .Crd .Name , metav1.GetOptions {})
314
+ if err != nil {
315
+ framework .Failf ("%v" , err )
316
+ }
312
317
crd .Crd .Spec .Versions [1 ].Served = false
313
318
crd .Crd , err = crd .APIExtensionClient .ApiextensionsV1beta1 ().CustomResourceDefinitions ().Update (crd .Crd )
314
319
if err != nil {
@@ -579,9 +584,11 @@ properties:
579
584
properties:
580
585
dummy:
581
586
description: Dummy property.
587
+ type: object
582
588
status:
583
589
description: Status of Waldo
584
590
type: object
585
591
properties:
586
592
bars:
587
- description: List of Bars and their statuses.` )
593
+ description: List of Bars and their statuses.
594
+ type: array` )
You can’t perform that action at this time.
0 commit comments