Skip to content

Commit

Permalink
remove rollout CustomResourceDefinition configuration conversionRevie…
Browse files Browse the repository at this point in the history
…wVersions v1beta1

Signed-off-by: chenshiwei-io <[email protected]>
  • Loading branch information
chenshiwei-io committed Apr 17, 2024
1 parent f1e33b6 commit 2ef1276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/util/crd/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func Ensure(client apiextensionsclientset.Interface, lister apiextensionslisters
newCRD := crd.DeepCopy()
newCRD.Spec.Conversion.Webhook = &apiextensionsv1.WebhookConversion{
ClientConfig: webhookConfig.DeepCopy(),
ConversionReviewVersions: []string{"v1", "v1beta1"},
ConversionReviewVersions: []string{"v1"},
}
if _, err := client.ApiextensionsV1().CustomResourceDefinitions().Update(context.TODO(), newCRD, metav1.UpdateOptions{}); err != nil {
return fmt.Errorf("failed to update CRD %s: %v", newCRD.Name, err)
Expand Down

0 comments on commit 2ef1276

Please sign in to comment.