use 'UpdateStatus' failed
@@ -84,6 +84,9 @@ func CreateCRD(clientset apiextensionsclient.Interface) error {
Plural: crdv1.VolumeSnapshotResourcePlural,
Kind: reflect.TypeOf(crdv1.VolumeSnapshot{}).Name(),
},
+ Subresources: &apiextensionsv1beta1.CustomResourceSubresources{
+ Status: &apiextensionsv1beta1.CustomResourceSubresourceStatus{},
+ },
},
}
res, err = clientset.ApiextensionsV1beta1().CustomResourceDefinitions().Create(crd)
