Skip to content
Open
9 changes: 9 additions & 0 deletions charts/fluent-bit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@

## [UNRELEASED]

### Changed

- Added support for serviceAccount.automountToken to service account and pod spec. ([#633](https://github.com/fluent/helm-charts/pull/633)) _@gsmith-sas_
- Added support for automountServiceAccountToken (pod-level override) to pod spec. ([#633](https://github.com/fluent/helm-charts/pull/633)) _@gsmith-sas_

### Deprecated

- Deprecated serviceAccount.automountServiceAccountToken (use serviceAccount.automountToken instead). ([#633](https://github.com/fluent/helm-charts/pull/633)) _@gsmith-sas_

## [v0.57.2] - 2026-04-02

### Changed
Expand Down
6 changes: 4 additions & 2 deletions charts/fluent-bit/templates/_pod.tpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{{- define "fluent-bit.pod" -}}
{{- if ne .Values.serviceAccount.automountServiceAccountToken nil }}
serviceAccountName: {{ include "fluent-bit.serviceAccountName" . }}
{{- if ne .Values.automountServiceAccountToken nil }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- else if ne .Values.serviceAccount.automountServiceAccountToken nil }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
{{- end }}
serviceAccountName: {{ include "fluent-bit.serviceAccountName" . }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 2 }}
Expand Down
4 changes: 3 additions & 1 deletion charts/fluent-bit/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if ne .Values.serviceAccount.automountServiceAccountToken nil }}
{{- if ne .Values.serviceAccount.automountToken nil }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountToken }}
{{- else if ne .Values.serviceAccount.automountServiceAccountToken nil }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
{{- end }}
{{- end -}}
11 changes: 11 additions & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,18 @@ serviceAccount:
create: true
annotations: {}
name:
# DEPRECATED: use serviceAccount.automountToken instead
automountServiceAccountToken:
# Automatically mount the ServiceAccount token
# on *all* pods using this ServiceAccount unless
# they explicitly opt out.
automountToken:

# Automatically mount the ServiceAccount token
# on the Fluent Bit pod(s). NOTE: This setting
# overrides serviceAccount.automountToken for
# the Fluent Bit pod(s).
automountServiceAccountToken:

rbac:
create: true
Expand Down