blob: f3f72f02efc5850ecd331e8f0d936b12bbd12feb [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04001{{- if .Values.webhook.config -}}
2 {{- if not .Values.webhook.config.apiVersion -}}
3 {{- fail "webhook.config.apiVersion must be set" -}}
4 {{- end -}}
5
6 {{- if not .Values.webhook.config.kind -}}
7 {{- fail "webhook.config.kind must be set" -}}
8 {{- end -}}
9{{- end -}}
10apiVersion: v1
11kind: ConfigMap
12metadata:
13 name: {{ include "webhook.fullname" . }}
14 namespace: {{ include "cert-manager.namespace" . }}
15 labels:
16 app: {{ include "webhook.name" . }}
17 app.kubernetes.io/name: {{ include "webhook.name" . }}
18 app.kubernetes.io/instance: {{ .Release.Name }}
19 app.kubernetes.io/component: "webhook"
20 {{- include "labels" . | nindent 4 }}
21data:
22 {{- if .Values.webhook.config }}
23 config.yaml: |
24 {{ .Values.webhook.config | toYaml | nindent 4 }}
25 {{- end }}