Skip to content

Commit

Permalink
feat(chart): add automountServiceAccountToken to deployment specs in …
Browse files Browse the repository at this point in the history
…Helm chart (#8869)
  • Loading branch information
jnoordsij committed Apr 5, 2024
1 parent 16df35e commit d72a202
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/kubernetes-dashboard/templates/deployments/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ spec:
{{- end }}
{{- end }}

automountServiceAccountToken: {{ .Values.api.automountServiceAccountToken }}

{{- with .Values.app.security.securityContext }}
securityContext:
{{ toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kubernetes-dashboard/templates/deployments/auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ spec:
{{- end }}
{{- end }}

automountServiceAccountToken: {{ .Values.auth.automountServiceAccountToken }}

{{- with .Values.app.security.securityContext }}
securityContext:
{{ toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ spec:
{{- end }}
{{- end }}

automountServiceAccountToken: {{ .Values.metricsScraper.automountServiceAccountToken }}

{{- with .Values.app.security.securityContext }}
securityContext:
{{ toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kubernetes-dashboard/templates/deployments/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ spec:
{{- end }}
{{- end }}

automountServiceAccountToken: {{ .Values.web.automountServiceAccountToken }}

{{- with .Values.app.security.securityContext }}
securityContext:
{{ toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/kubernetes-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ auth:
limits:
cpu: 250m
memory: 400Mi
automountServiceAccountToken: false
volumes:
# Create on-disk volume to store exec logs (required)
- name: tmp-volume
Expand Down Expand Up @@ -192,6 +193,7 @@ api:
limits:
cpu: 250m
memory: 400Mi
automountServiceAccountToken: true
# Additional volumes
# - name: dashboard-kubeconfig
# secret:
Expand Down Expand Up @@ -246,6 +248,7 @@ web:
limits:
cpu: 250m
memory: 400Mi
automountServiceAccountToken: true
# Additional volumes
# - name: dashboard-kubeconfig
# secret:
Expand Down Expand Up @@ -305,6 +308,7 @@ metricsScraper:
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 30
automountServiceAccountToken: true
# Additional volumes
# - name: dashboard-kubeconfig
# secret:
Expand Down

0 comments on commit d72a202

Please sign in to comment.