15 lines
475 B
YAML
15 lines
475 B
YAML
{{- 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 }}
|