From a35f9f99437bbbe2cc00a764cf95dd10f37e94e2 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 8 Aug 2022 15:09:02 -0300 Subject: [PATCH] Fix issue with boolean values in redis config --- charts/rspamd/v0.1.0/templates/locald-configmap.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml index bb8546b..b2362fc 100644 --- a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml +++ b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml @@ -59,6 +59,10 @@ data: dkim_signing.conf: |- dkim_signing { {{- range $key, $value := .Values.rspamd.dkimSigning }} + {{ if or (eq $value "true") (eq $value "false") -}} + {{ $key }} = {{ $value }}; + {{- else -}} {{ $key }} = "{{ $value }}"; + {{- end -}} {{- end }} }; \ No newline at end of file