Skip to content

Commit b1c8e30

Browse files
authored
Merge pull request #6957 from joshuastern/automountServiceAccountToken
Add ability to specify automountServiceAccountToken
2 parents 2555747 + 343790a commit b1c8e30

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

charts/ingress-nginx/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This file documents all notable changes to [ingress-nginx](https://github.com/ku
44

55
### Unreleased
66

7+
### 3.25.0
8+
9+
- [X] [#6957](https://github.com/kubernetes/ingress-nginx/pull/6957) Add ability to specify automountServiceAccountToken
10+
711
### 3.24.0
812

913
- [X] [#6908](https://github.com/kubernetes/ingress-nginx/pull/6908) Add volumes to default-backend deployment

charts/ingress-nginx/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: ingress-nginx
33
# When the version is modified, make sure the artifacthub.io/changes list is updated
44
# Also update CHANGELOG.md
5-
version: 3.24.0
5+
version: 3.25.0
66
appVersion: 0.44.0
77
home: https://github.com/kubernetes/ingress-nginx
88
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
@@ -21,4 +21,4 @@ annotations:
2121
# List of changes for the release in artifacthub.io
2222
# https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx?modal=changelog
2323
artifacthub.io/changes: |
24-
- Add volumes to default-backend deployment
24+
- Add ability to specify automountServiceAccountToken

charts/ingress-nginx/templates/controller-serviceaccount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ metadata:
66
{{- include "ingress-nginx.labels" . | nindent 4 }}
77
app.kubernetes.io/component: controller
88
name: {{ template "ingress-nginx.serviceAccountName" . }}
9+
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
910
{{- end }}

charts/ingress-nginx/templates/default-backend-serviceaccount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ metadata:
66
{{- include "ingress-nginx.labels" . | nindent 4 }}
77
app.kubernetes.io/component: default-backend
88
name: {{ template "ingress-nginx.defaultBackend.serviceAccountName" . }}
9+
automountServiceAccountToken: {{ .Values.defaultBackend.serviceAccount.automountServiceAccountToken }}
910
{{- end }}

charts/ingress-nginx/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ defaultBackend:
614614
serviceAccount:
615615
create: true
616616
name: ""
617+
automountServiceAccountToken: true
617618
## Additional environment variables to set for defaultBackend pods
618619
extraEnvs: []
619620

@@ -724,6 +725,7 @@ podSecurityPolicy:
724725
serviceAccount:
725726
create: true
726727
name: ""
728+
automountServiceAccountToken: true
727729

728730
## Optional array of imagePullSecrets containing private registry credentials
729731
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

0 commit comments

Comments
 (0)