cert-manager: upgrade from 1.12.17 to 1.17.4
Change-Id: Iea0d6eac22a57f9f1fc522e6abdd9359fbbd1415
diff --git a/charts/cert-manager/templates/webhook-mutating-webhook.yaml b/charts/cert-manager/templates/webhook-mutating-webhook.yaml
index f3db011..9ea2977 100644
--- a/charts/cert-manager/templates/webhook-mutating-webhook.yaml
+++ b/charts/cert-manager/templates/webhook-mutating-webhook.yaml
@@ -15,17 +15,19 @@
{{- end }}
webhooks:
- name: webhook.cert-manager.io
+ {{- with .Values.webhook.mutatingWebhookConfiguration.namespaceSelector }}
+ namespaceSelector:
+ {{- toYaml . | nindent 6 }}
+ {{- end }}
rules:
- apiGroups:
- "cert-manager.io"
- - "acme.cert-manager.io"
apiVersions:
- "v1"
operations:
- CREATE
- - UPDATE
resources:
- - "*/*"
+ - "certificaterequests"
admissionReviewVersions: ["v1"]
# This webhook only accepts v1 cert-manager resources.
# Equivalent matchPolicy ensures that non-v1 resource requests are sent to
@@ -43,4 +45,4 @@
name: {{ template "webhook.fullname" . }}
namespace: {{ include "cert-manager.namespace" . }}
path: /mutate
- {{- end }}
+ {{- end }}
\ No newline at end of file