You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/openab/templates/configmap.yaml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,9 @@ metadata:
11
11
data:
12
12
config.toml: |
13
13
{{- if ($cfg.discord).enabled }}
14
+
{{- if not $cfg.discord.allowedChannels }}
15
+
{{- fail (printf "agents.%s.discord.allowedChannels is required — empty means the bot will not respond to any messages. Add at least one channel ID." $name) }}
16
+
{{- end }}
14
17
[discord]
15
18
bot_token = "${DISCORD_BOT_TOKEN}"
16
19
{{- range $cfg.discord.allowedChannels }}
@@ -52,6 +55,9 @@ data:
52
55
{{- end }}
53
56
54
57
{{- if and ($cfg.slack).enabled }}
58
+
{{- if not (($cfg.slack).allowedChannels) }}
59
+
{{- fail (printf "agents.%s.slack.allowedChannels is required — empty means the bot will not respond to any messages. Add at least one channel ID." $name) }}
0 commit comments