From 2ef12762d89ce4836a7f19047eea1aa6f0116bc4 Mon Sep 17 00:00:00 2001 From: chenshiwei-io Date: Wed, 17 Apr 2024 18:22:29 +0800 Subject: [PATCH] remove rollout CustomResourceDefinition configuration conversionReviewVersions v1beta1 Signed-off-by: chenshiwei-io --- pkg/webhook/util/crd/crd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhook/util/crd/crd.go b/pkg/webhook/util/crd/crd.go index cd275e3e..00784738 100644 --- a/pkg/webhook/util/crd/crd.go +++ b/pkg/webhook/util/crd/crd.go @@ -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)