Skip to content

feat: Add serviceAccount.automountServiceAccountToken value - #168

Open
bruno-espino wants to merge 1 commit into
dexidp:masterfrom
bruno-espino:automount-sa-token
Open

bruno-espino wants to merge 1 commit into
dexidp:masterfrom
bruno-espino:automount-sa-token

Conversation

@bruno-espino

Copy link
Copy Markdown

Overview

Adds a serviceAccount.automountServiceAccountToken value rendered as spec.automountServiceAccountToken on the Dex Deployment pod template.

What this PR does / why we need it

A pod-mounted service account token is a cluster credential usable against the Kubernetes API server. Dex deployments that don't call the Kubernetes API (static configuration from a secret, non-Kubernetes storage) have no use for it, but the chart always leaves it automounting, including on the default service account when serviceAccount.create is false. This PR makes the field configurable:

serviceAccount:
  automountServiceAccountToken: false

The value defaults to true, matching the Kubernetes default, so existing installs render identically unless they opt in.

Special notes for your reviewer

Rendered and validated with helm lint, helm template with the default and an overridden value, and all ci/ values files.

Checklist

  • Change log updated in Chart.yaml
  • Chart version bumped in Chart.yaml
  • Documentation regenerated by running make docs

Signed-off-by: Bruno Espino <brunoespi7@gmail.com>

This branch has not been deployed

No deployments
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