diff --git a/charts/openab/templates/configmap.yaml b/charts/openab/templates/configmap.yaml index 2ca6aa6c..2e8996b1 100644 --- a/charts/openab/templates/configmap.yaml +++ b/charts/openab/templates/configmap.yaml @@ -113,7 +113,7 @@ data: [reactions] enabled = {{ ($cfg.reactions).enabled | default true }} - remove_after_reply = {{ ($cfg.reactions).removeAfterReply | default false }} + remove_after_reply = {{ if hasKey ($cfg.reactions) "removeAfterReply" }}{{ ($cfg.reactions).removeAfterReply }}{{ else }}false{{ end }} {{- if ($cfg.reactions).toolDisplay }} {{- if not (has ($cfg.reactions).toolDisplay (list "full" "compact" "none")) }} {{- fail (printf "agents.%s.reactions.toolDisplay must be one of: full, compact, none — got: %s" $name ($cfg.reactions).toolDisplay) }} @@ -163,7 +163,7 @@ data: {{- if or ($cfg.cronjobs) (($cfg.cron).usercronEnabled) (($cfg.cron).usercronPath) }} [cron] - usercron_enabled = {{ (($cfg.cron).usercronEnabled) | default false }} + usercron_enabled = {{ if hasKey ($cfg.cron) "usercronEnabled" }}{{ (($cfg.cron).usercronEnabled) }}{{ else }}false{{ end }} {{- if (($cfg.cron).usercronPath) }} usercron_path = {{ ($cfg.cron).usercronPath | toJson }} {{- end }}