From 5f622d2f4d277b5881737c0eb782e0525964bd27 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 13 Jul 2022 15:37:01 -0300 Subject: [PATCH] Only disable worker-normal in milter mode --- charts/rspamd/v0.1.0/templates/locald-configmap.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml index 0cad9f7..62d39b3 100644 --- a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml +++ b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml @@ -46,7 +46,9 @@ data: spam_header = "{{ .Values.rspamd.workerProxy.spamHeader }}"; # Use the specific spam header reject_message = "{{ .Values.rspamd.workerProxy.rejectMessage }}"; # Use custom rejection message worker-normal.inc: |- + {{ if eq .Values.rspamd.workerProxy.milter "yes" -}} # Disable worker-normal in Milter mode worker "normal" { enabled = false; - } \ No newline at end of file + } + {{- end -}} \ No newline at end of file