blob: cd8b67f55297297205f2b8991fad8bfbde67205d [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04001{{- if .Values.webhook.config -}}
gio33d62932026-07-23 16:39:35 +04002{{- $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) -}}
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04005apiVersion: 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:
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +040017 config.yaml: |
gio33d62932026-07-23 16:39:35 +040018 {{- $config | toYaml | nindent 4 }}
19{{- end -}}