{{- if and .Values.webhook.create (not .Values.webhook.certManager.enabled) }} apiVersion: v1 kind: Secret metadata: name: {{ include "external-secrets.fullname" . }}-webhook namespace: {{ template "external-secrets.namespace" . }} labels: {{- include "external-secrets-webhook.labels" . | nindent 4 }} external-secrets.io/component: webhook {{- with .Values.webhook.secretAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}