Skip to content

Commit

Permalink
Cherry pick #3031 (#3046)
Browse files Browse the repository at this point in the history
adding automountServiceAccountToken to helm chart (#3031)

Co-authored-by: Jason Williams <[email protected]>
  • Loading branch information
ciarams87 and jasonwilliams14 authored Sep 16, 2022
1 parent 7274fe4 commit 398c32e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployments/common/ns-and-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: nginx-ingress
namespace: nginx-ingress
namespace: nginx-ingress
#automountServiceAccountToken: false
1 change: 1 addition & 0 deletions deployments/daemon-set/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
#prometheus.io/scheme: http
spec:
serviceAccountName: nginx-ingress
automountServiceAccountToken: true
containers:
- image: nginx/nginx-ingress:2.3.0
imagePullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions deployments/daemon-set/nginx-plus-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
#prometheus.io/scheme: http
spec:
serviceAccountName: nginx-ingress
automountServiceAccountToken: true
containers:
- image: nginx-plus-ingress:2.3.0
imagePullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions deployments/deployment/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
#prometheus.io/scheme: http
spec:
serviceAccountName: nginx-ingress
automountServiceAccountToken: true
containers:
- image: nginx/nginx-ingress:2.3.0
imagePullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions deployments/deployment/nginx-plus-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
#prometheus.io/scheme: http
spec:
serviceAccountName: nginx-ingress
automountServiceAccountToken: true
containers:
- image: nginx-plus-ingress:2.3.0
imagePullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions deployments/helm-chart/templates/controller-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ include "nginx-ingress.serviceAccountName" . }}
automountServiceAccountToken: true
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
{{- if .Values.controller.nodeSelector }}
nodeSelector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ spec:
priorityClassName: {{ .Values.controller.priorityClassName }}
{{- end }}
serviceAccountName: {{ include "nginx-ingress.serviceAccountName" . }}
automountServiceAccountToken: true
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
hostNetwork: {{ .Values.controller.hostNetwork }}
containers:
Expand Down

0 comments on commit 398c32e

Please sign in to comment.