Skip to content

feat: control.rbac.existingServiceAccount - #39

Merged
levkk merged 1 commit into
pgdogdev:mainfrom
piotr-reducto:feat/existing-service-account
Nov 9, 2026
Merged

levkk merged 1 commit into
pgdogdev:mainfrom
piotr-reducto:feat/existing-service-account

Conversation

@piotr-reducto

@piotr-reducto piotr-reducto commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Adds control.rbac.existingServiceAccount. With control.rbac.create: false, the control pod can now run as an existing ServiceAccount, for example one with RBAC bound out of band or one annotated for EKS IRSA. Today create: false always runs the pod as the namespace's default ServiceAccount.

  • The pod leaves automountServiceAccountToken unset, so the ServiceAccount's own setting decides. Keep the token for the Kubernetes views, or turn it off when the pod only needs IRSA.
  • The render fails with create: true, and with control.aws.roleArn. roleArn only annotates the chart's own ServiceAccount, so in this mode you annotate the ServiceAccount yourself.
  • README: table row, an example under "Disabling RBAC", and the IRSA trust-policy subject.

Opt-in. Without the key, every test values file renders byte-identical to main at the same chart version. That includes the existing combinations of create: false with serviceAccountName or roleArn.

Chart version 0.4.0 -> 0.4.1. Tests: test/values-existing-service-account.yaml and a block in test/test.sh. test.sh and control2 configcheck pass locally.

Runs the control pod as an existing ServiceAccount when the chart's
RBAC is off (control.rbac.create=false), e.g. one with RBAC bound out
of band or annotated for EKS IRSA. Before, create=false always ran the
pod as the namespace default ServiceAccount.

The pod leaves automountServiceAccountToken unset, so the
ServiceAccount's own setting decides the API token. The render fails
with create=true or control.aws.roleArn, which only annotates the
chart's ServiceAccount. Opt-in: without the key, output is unchanged,
including create=false with a serviceAccountName or roleArn.

@levkk levkk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@piotr-reducto
piotr-reducto marked this pull request as ready for review November 9, 2026 09:39
@levkk
levkk merged commit 880386b into pgdogdev:main Nov 9, 2026
2 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.

2 participants