diff --git a/charts/emailleg/v1.4.0/templates/config-job.yaml b/charts/emailleg/v1.4.0/templates/config-job.yaml index 38b7cd8..3550331 100644 --- a/charts/emailleg/v1.4.0/templates/config-job.yaml +++ b/charts/emailleg/v1.4.0/templates/config-job.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.mail.ldap.server }} apiVersion: batch/v1 kind: Job metadata: @@ -59,4 +60,5 @@ spec: operator: In values: - {{ .Release.Name }} - topologyKey: kubernetes.io/hostname \ No newline at end of file + topologyKey: kubernetes.io/hostname +{{- end }} \ No newline at end of file