blob: cd8b67f55297297205f2b8991fad8bfbde67205d [file] [log] [blame]
Giorgi Lekveishviliea328da2026-07-29 12:15:15 +04001{{- if .Values.webhook.config -}}
2{{- $config := .Values.webhook.config -}}
3{{- $_ := set $config "apiVersion" (default "webhook.config.cert-manager.io/v1alpha1" $config.apiVersion) -}}
4{{- $_ := set $config "kind" (default "WebhookConfiguration" $config.kind) -}}
5apiVersion: v1
6kind: ConfigMap
7metadata:
8 name: {{ include "webhook.fullname" . }}
9 namespace: {{ include "cert-manager.namespace" . }}
10 labels:
11 app: {{ include "webhook.name" . }}
12 app.kubernetes.io/name: {{ include "webhook.name" . }}
13 app.kubernetes.io/instance: {{ .Release.Name }}
14 app.kubernetes.io/component: "webhook"
15 {{- include "labels" . | nindent 4 }}
16data:
17 config.yaml: |
18 {{- $config | toYaml | nindent 4 }}
19{{- end -}}