Skip to content

Helm: discord.enabled not set on upgrade from 0.7.6 causes CrashLoopBackOff #383

@thepagent

Description

@thepagent

Parent: #382

Problem

Upgrading from 0.7.6 → 0.7.7-beta.1 with helm upgrade --reuse-values causes CrashLoopBackOff:

Error: failed to parse /etc/openab/config.toml: missing field `discord`

The new chart added discord.enabled: true as a default, but --reuse-values preserves the old user-supplied discord block which does not include enabled. The template condition and ($cfg.discord).enabled ($cfg.discord).botToken evaluates to false, so [discord] is omitted from config.toml entirely.

Workaround

helm upgrade openab openab/openab --version 0.7.7-beta.1 --reuse-values \
  --set agents.<name>.discord.enabled=true

Suggested fix

Option A: Default discord.enabled from presence of botToken in the template (if botToken is non-empty, treat as enabled)
Option B: Add migration note to NOTES.txt / release notes
Option C: Make the binary tolerate missing [discord] section when discord is Option<DiscordConfig> in config.rs (it already is, so this may be a TOML parsing issue with empty sections)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions