Skip to content

Commit d72a202

Browse files
authored
feat(chart): add automountServiceAccountToken to deployment specs in Helm chart (#8869)
1 parent 16df35e commit d72a202

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

charts/kubernetes-dashboard/templates/deployments/api.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ spec:
100100
{{- end }}
101101
{{- end }}
102102

103+
automountServiceAccountToken: {{ .Values.api.automountServiceAccountToken }}
104+
103105
{{- with .Values.app.security.securityContext }}
104106
securityContext:
105107
{{ toYaml . | nindent 8 }}

charts/kubernetes-dashboard/templates/deployments/auth.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ spec:
101101
{{- end }}
102102
{{- end }}
103103

104+
automountServiceAccountToken: {{ .Values.auth.automountServiceAccountToken }}
105+
104106
{{- with .Values.app.security.securityContext }}
105107
securityContext:
106108
{{ toYaml . | nindent 8 }}

charts/kubernetes-dashboard/templates/deployments/metrics-scraper.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ spec:
9898
{{- end }}
9999
{{- end }}
100100

101+
automountServiceAccountToken: {{ .Values.metricsScraper.automountServiceAccountToken }}
102+
101103
{{- with .Values.app.security.securityContext }}
102104
securityContext:
103105
{{ toYaml . | nindent 8 }}

charts/kubernetes-dashboard/templates/deployments/web.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ spec:
9595
{{- end }}
9696
{{- end }}
9797

98+
automountServiceAccountToken: {{ .Values.web.automountServiceAccountToken }}
99+
98100
{{- with .Values.app.security.securityContext }}
99101
securityContext:
100102
{{ toYaml . | nindent 8 }}

charts/kubernetes-dashboard/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ auth:
143143
limits:
144144
cpu: 250m
145145
memory: 400Mi
146+
automountServiceAccountToken: false
146147
volumes:
147148
# Create on-disk volume to store exec logs (required)
148149
- name: tmp-volume
@@ -192,6 +193,7 @@ api:
192193
limits:
193194
cpu: 250m
194195
memory: 400Mi
196+
automountServiceAccountToken: true
195197
# Additional volumes
196198
# - name: dashboard-kubeconfig
197199
# secret:
@@ -246,6 +248,7 @@ web:
246248
limits:
247249
cpu: 250m
248250
memory: 400Mi
251+
automountServiceAccountToken: true
249252
# Additional volumes
250253
# - name: dashboard-kubeconfig
251254
# secret:
@@ -305,6 +308,7 @@ metricsScraper:
305308
port: 8000
306309
initialDelaySeconds: 30
307310
timeoutSeconds: 30
311+
automountServiceAccountToken: true
308312
# Additional volumes
309313
# - name: dashboard-kubeconfig
310314
# secret:

0 commit comments

Comments
 (0)