[bitnami/node-exporter] fix: 🔒 Move service-account token auto-mount to pod declaration (#22443)

* [bitnami/node-exporter] fix: 🔒 Move service-account token auto-mount to pod declaration

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Update goss test to reflect new value

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

---------

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2024-01-19 12:30:04 +01:00
committed by GitHub
parent b0d955566b
commit 17c4bba008
6 changed files with 8 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ spec:
spec:
{{- include "node-exporter.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ template "node-exporter.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}