Skip to content

feat(chart): add extraEnv and rollout on secrets #626

Closed

Description

@uniqueg

Problem

The app container's env is fixed in _deployment.tpl. Operators can't inject settings from their own Secrets or ConfigMaps, such as MONGO_URI. Pods restart when the config overlay changes (checksum/config exists for app and worker), but not when a referenced Secret changes.

Proposal

<valuesKey>:
  extraEnv: []          # list of EnvVar
  extraEnvFrom: []      # list of EnvFromSource
  rolloutOnSecrets: []  # Secret names whose data checksum becomes a pod annotation
  • Applied to the app and worker containers, not to the bundled broker or MongoDB.
  • Rendering fails when extraEnv sets a variable FOCA owns (FOCA_CONFIG_OVERLAY, GUNICORN_CMD_ARGS; MONGO_USERNAME, MONGO_PASSWORD when auth is on), like the refusal of --bind in extraArgs.
  • rolloutOnSecrets uses lookup, which is empty in helm template and Argo CD: document that, and Stakater Reloader as the alternative, with no dependency on it.
  • Schema, petstore example, docs and migration notes.

Acceptance criteria

  • Chart tests: env lists for app and worker; reserved names fail; rolloutOnSecrets renders without error in helm template.
  • helm lint, chart unit tests and the kind install pass.

Activity

  1. added this to the v0.21.0 milestone on Nov 3, 2026
  2. added
    priority: medium
    status: triage
    type: feature
    workload: days
    on Nov 3, 2026
  3. added
    status: in progress
    and removed
    status: triage
    on Nov 4, 2026
  4. removed
    status: in progress
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: featureworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions