Skip to content

Commit 69c2aa5

Browse files
fix(helm): align configmap discord condition with secret/deployment/NOTES
Replace the looser `or (enabled, botToken)` check with the same `botToken`-gated condition used by the other three templates, preventing configmap from rendering [discord] when no token is available. Also switches pipe syntax to function-call syntax for consistency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 081e46d commit 69c2aa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

charts/openab/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
{{- include "openab.labels" $d | nindent 4 }}
1111
data:
1212
config.toml: |
13-
{{- if and (ne (($cfg.discord).enabled | toString) "false") (or ($cfg.discord).enabled ($cfg.discord).botToken) }}
13+
{{- if and (ne (toString ($cfg.discord).enabled) "false") ($cfg.discord).botToken }}
1414
[discord]
1515
bot_token = "${DISCORD_BOT_TOKEN}"
1616
{{- range $cfg.discord.allowedChannels }}

0 commit comments

Comments
 (0)