Skip to content

feat(operator-wandb): add mailFrom to SMTP config#585

Merged
flamarion merged 5 commits intomainfrom
feature/smtp-mail-from
Apr 14, 2026
Merged

feat(operator-wandb): add mailFrom to SMTP config#585
flamarion merged 5 commits intomainfrom
feature/smtp-mail-from

Conversation

@flamarion
Copy link
Copy Markdown
Contributor

@flamarion flamarion commented Apr 10, 2026

Summary

  • Adds global.email.smtp.mailFrom to set GORILLA_EMAIL_FROM_ADDRESS natively, removing the need for global.extraEnv workaround
  • Supports both plain string values and valueFrom secret references, consistent with existing SMTP fields (host, port, user, password)
  • Env var is only injected when mailFrom is non-empty, so zero impact on existing deployments

Test plan

  • Snapshot test for plain string mailFrom (snap-smtp-mail-from.yaml)
  • Snapshot test for valueFrom secret ref (snap-smtp-mail-from-secret.yaml)
  • All existing snapshot tests pass (./snapshots.sh run — 34/34 PASS)
  • Default snapshot confirms GORILLA_EMAIL_FROM_ADDRESS is not emitted when mailFrom is empty

Summary by CodeRabbit

  • New Features

    • Added support for configuring a global SMTP "From" address, usable as a plain value or sourced from a secret.
  • Tests

    • Added example configurations demonstrating both direct and secret-backed sender settings.
  • Chores

    • Bumped operator Helm chart version to 0.41.6.

@flamarion flamarion requested a review from a team as a code owner April 10, 2026 14:42
Remove stale seLinuxOptions: null from redis StatefulSet across all
existing snapshot files due to Bitnami redis chart update.
Adds global.email.smtp.mailFrom to set GORILLA_EMAIL_FROM_ADDRESS,
removing the need to use global.extraEnv as a workaround. Supports
both plain string values and valueFrom secret references.
Copy link
Copy Markdown
Contributor

@mwhooker mwhooker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct. Please fix the snapshots errors

Restore seLinuxOptions: null in Redis StatefulSet across all snapshots.
This line was incorrectly removed using Helm v4 locally, but CI runs
Helm v3.20.1 which renders it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants