From fbfe48cad83ea04e6147c10ebd63b89afb8967f2 Mon Sep 17 00:00:00 2001 From: joshvanl Date: Mon, 26 Jul 2021 17:33:24 +0100 Subject: [PATCH] Change webhook manifests for mutation and validation to only accept `v1` in admissionReviewVersions Signed-off-by: joshvanl --- .../charts/cert-manager/templates/webhook-mutating-webhook.yaml | 2 +- .../cert-manager/templates/webhook-validating-webhook.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml b/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml index fa8a6beb7..ba68445e2 100644 --- a/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml +++ b/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml @@ -26,7 +26,7 @@ webhooks: - UPDATE resources: - "*/*" - admissionReviewVersions: ["v1", "v1beta1"] + admissionReviewVersions: ["v1"] # This webhook only accepts v1 cert-manager resources. # Equivalent matchPolicy ensures that non-v1 resource requests are sent to # this webhook (after the resources have been converted to v1). diff --git a/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml b/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml index 673783d7b..403bc2a2f 100644 --- a/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml +++ b/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml @@ -36,7 +36,7 @@ webhooks: - UPDATE resources: - "*/*" - admissionReviewVersions: ["v1", "v1beta1"] + admissionReviewVersions: ["v1"] # This webhook only accepts v1 cert-manager resources. # Equivalent matchPolicy ensures that non-v1 resource requests are sent to # this webhook (after the resources have been converted to v1).