Skip to content

feat(charts): support Deployment metadata annotations on every deployment - #211

Merged
IxDay merged 1 commit into
lago-v2from
feat/deployment-annotations
Jun 17, 2026
Merged

feat(charts): support Deployment metadata annotations on every deployment#211
IxDay merged 1 commit into
lago-v2from
feat/deployment-annotations

Conversation

@IxDay

@IxDay IxDay commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a new top-level annotations: {} value to every deployment-bearing subchart (lago-rails, lago-front, lago-pdf, lago-events-processor-worker, lago-data-api, lago-data-worker, lago-mcp-server) and renders it as the Deployment's metadata.annotations.
  • Closes the gap that prevented controllers like Stakater Reloader from working with these deployments — podAnnotations was the only existing hook, and it lands on the pod template, not the Deployment, so Reloader never saw the annotation it needs to roll the pods on cm/secret changes.
  • With this in, the umbrella lago chart can opt subcharts into Reloader (or any other Deployment-level annotation) via <subchart>.annotations: { reloader.stakater.com/auto: "true" }.

Test plan

  • task test:unit — all charts pass; the new tests-common/deployment/common_patterns_test.yaml assertions cover the "set" and "empty" cases
  • Render the umbrella chart locally with annotations: { reloader.stakater.com/auto: "true" } on api and confirm the Deployment manifest carries the annotation at metadata.annotations

…ment

Renders a new top-level annotations: {} value as the Deployment
metadata.annotations on every deployment-bearing subchart
(lago-rails, lago-front, lago-pdf, lago-events-processor-worker,
lago-data-api, lago-data-worker, lago-mcp-server).

Until now only podAnnotations was wired through, and it landed on
the pod template, which is the wrong object for controllers like
Stakater Reloader that watch and patch the Deployment to trigger
rollouts on ConfigMap/Secret changes. With this change, setting
e.g. annotations: { reloader.stakater.com/auto: "true" } in the
umbrella values is enough to opt a deployment into Reloader.

Adds two shared assertions to tests-common/deployment/common_patterns_test.yaml
to cover the new field both when set and when empty.
@IxDay
IxDay merged commit ac4550d into lago-v2 Jun 17, 2026
4 checks passed
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.

1 participant