From 13f9daa54e1d973f9010b86d4e6c5af57e9b182f Mon Sep 17 00:00:00 2001 From: Raunak Pradip Shah Date: Wed, 8 Jun 2022 10:59:21 +0530 Subject: [PATCH] Remove v1beta1 from admission config template --- .../webhook-example/admission-configuration-template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/kubernetes/webhook-example/admission-configuration-template b/deploy/kubernetes/webhook-example/admission-configuration-template index bae6e4f8..8c412404 100644 --- a/deploy/kubernetes/webhook-example/admission-configuration-template +++ b/deploy/kubernetes/webhook-example/admission-configuration-template @@ -6,7 +6,7 @@ webhooks: - name: "validation-webhook.snapshot.storage.k8s.io" rules: - apiGroups: ["snapshot.storage.k8s.io"] - apiVersions: ["v1", "v1beta1"] + apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["volumesnapshots", "volumesnapshotcontents", "volumesnapshotclasses"] scope: "*" @@ -16,7 +16,7 @@ webhooks: name: "snapshot-validation-service" path: "/volumesnapshot" caBundle: ${CA_BUNDLE} - admissionReviewVersions: ["v1", "v1beta1"] + admissionReviewVersions: ["v1"] sideEffects: None failurePolicy: Ignore # We recommend switching to Fail only after successful installation of the webhook server and webhook. timeoutSeconds: 2 # This will affect the latency and performance. Finetune this value based on your application's tolerance.