github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/cert-manager/templates/webhook-config.yaml (about) 1 {{- 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 -}} 10 apiVersion: v1 11 kind: ConfigMap 12 metadata: 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 data: 21 {{- if .Values.webhook.config }} 22 config.yaml: | 23 {{ .Values.webhook.config | toYaml | nindent 4 }} 24 {{- end }}