Skip to content

feat(infrahub): wire serviceAccount configuration into pod specs#64

Merged
fatih-acar merged 1 commit into
stablefrom
fac-wire-serviceaccount
Jun 2, 2026
Merged

feat(infrahub): wire serviceAccount configuration into pod specs#64
fatih-acar merged 1 commit into
stablefrom
fac-wire-serviceaccount

Conversation

@fatih-acar

Copy link
Copy Markdown
Contributor

Summary

The infrahub-helm.serviceAccountName helper existed in the infrahub chart but was completely orphaned: no top-level serviceAccount block in values, no ServiceAccount template, and no pod spec referencing it — so configuring a service account name silently did nothing.

infrahub (4.21.6 → 4.22.0)

  • Add top-level serviceAccount values block (create, name, annotations), mirroring the already-wired infrahub-backup chart
  • Add templates/serviceaccount.yaml, rendered when serviceAccount.create=true (supports annotations, e.g. for IRSA/Workload Identity)
  • Wire serviceAccountName into all 5 pod specs (server, task-worker, upgrade job, demo-data job, emma) via with, so the field is omitted when unset — default installs render byte-identical to before (no rollout on upgrade)
  • Regenerated README (also picks up stale prefectTag doc entry)

infrahub-enterprise (4.7.6 → 4.8.0)

  • Remove the orphaned infrahub-enterprise-helm.serviceAccountName helper (dead code — workloads come from the infrahub dependency)
  • Bump infrahub dependency pin to 4.22.0
  • Regenerated README

Behavior

Configuration Result
defaults no serviceAccountName rendered (unchanged manifests)
serviceAccount.create=true ServiceAccount created, all 5 pods reference it
serviceAccount.name=my-sa, create=false pods reference the existing SA, none created

Test plan

  • helm lint passes for both charts
  • helm template verified for the three configurations above

🤖 Generated with Claude Code

The infrahub-helm.serviceAccountName helper existed but was never used:
there was no serviceAccount block in values, no ServiceAccount template,
and no pod spec referencing it.

- add top-level serviceAccount values (create, name, annotations)
- add templates/serviceaccount.yaml rendered when create is true
- set serviceAccountName on all pod specs (server, task-worker,
  upgrade job, demo-data job, emma), omitted when unset so default
  installs render unchanged
- remove the orphaned serviceAccountName helper from infrahub-enterprise

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fatih-acar fatih-acar merged commit 17d87aa into stable Jun 2, 2026
1 check passed
@fatih-acar fatih-acar deleted the fac-wire-serviceaccount branch June 2, 2026 17:38
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