From fb0451d4e2e15adbf9d9f586aa11f1154f56db77 Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 17 Nov 2022 11:34:48 -0300 Subject: [PATCH] Do not create config job if LDAP is enabled --- charts/emailleg/v1.4.0/templates/config-job.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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