diff --git a/charts/tofu-controller/templates/controller-serviceaccount.yaml b/charts/tofu-controller/templates/controller-serviceaccount.yaml index f5ce30459..d86526e40 100644 --- a/charts/tofu-controller/templates/controller-serviceaccount.yaml +++ b/charts/tofu-controller/templates/controller-serviceaccount.yaml @@ -9,6 +9,7 @@ metadata: annotations: {{- toYaml . | nindent 4 }} {{- end }} +automountServiceAccountToken: false {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 2 }} diff --git a/charts/tofu-controller/templates/deployment.yaml b/charts/tofu-controller/templates/deployment.yaml index e4f19e746..7d8c2cfa7 100644 --- a/charts/tofu-controller/templates/deployment.yaml +++ b/charts/tofu-controller/templates/deployment.yaml @@ -21,6 +21,7 @@ spec: {{- end }} {{- include "tofu-controller.selectorLabels" . | nindent 8 }} spec: + automountServiceAccountToken: true {{- if not .Values.serviceAccount.create }} {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/tofu-controller/templates/planner-deployment.yaml b/charts/tofu-controller/templates/planner-deployment.yaml index 18fc5293e..5950c3745 100644 --- a/charts/tofu-controller/templates/planner-deployment.yaml +++ b/charts/tofu-controller/templates/planner-deployment.yaml @@ -23,6 +23,7 @@ spec: {{- end }} {{- include "planner.selectorLabels" . | nindent 8 }} spec: + automountServiceAccountToken: true {{- if not .Values.serviceAccount.create }} {{- with .Values.imagePullSecrets }} imagePullSecrets: