update
diff --git a/charts/cert-manager/templates/webhook-validating-webhook.yaml b/charts/cert-manager/templates/webhook-validating-webhook.yaml
index a5d168e..76235fd 100644
--- a/charts/cert-manager/templates/webhook-validating-webhook.yaml
+++ b/charts/cert-manager/templates/webhook-validating-webhook.yaml
@@ -15,16 +15,10 @@
{{- end }}
webhooks:
- name: webhook.cert-manager.io
+ {{- with .Values.webhook.validatingWebhookConfiguration.namespaceSelector }}
namespaceSelector:
- matchExpressions:
- - key: "cert-manager.io/disable-validation"
- operator: "NotIn"
- values:
- - "true"
- - key: "name"
- operator: "NotIn"
- values:
- - {{ include "cert-manager.namespace" . }}
+ {{- toYaml . | nindent 6 }}
+ {{- end }}
rules:
- apiGroups:
- "cert-manager.io"