Skip to content

Commit bcef6c8

Browse files
authored
Add annotations to the service account in the Helm chart (#3065)
1 parent 9e4230b commit bcef6c8

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

deployments/helm-chart/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ Parameter | Description | Default
220220
`controller.service.httpsPort.port` | The HTTPS port of the Ingress Controller service. | 443
221221
`controller.service.httpsPort.nodePort` | The custom NodePort for the HTTPS port. Requires `controller.service.type` set to `NodePort`. | ""
222222
`controller.service.httpsPort.targetPort` | The target port of the HTTPS port of the Ingress Controller service. | 443
223+
`controller.serviceAccount.annotations` | The annotations of the Ingress Controller service account. | {}
223224
`controller.serviceAccount.name` | The name of the service account of the Ingress Controller pods. Used for RBAC. | Autogenerated
224225
`controller.serviceAccount.imagePullSecretName` | The name of the secret containing docker registry credentials. Secret must exist in the same namespace as the helm release. | ""
225226
`controller.serviceMonitor.name` | The name of the serviceMonitor. | Autogenerated

deployments/helm-chart/templates/controller-serviceaccount.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5+
{{- if .Values.controller.serviceAccount.annotations }}
6+
annotations: {{- toYaml .Values.controller.serviceAccount.annotations | nindent 4 }}
7+
{{- end }}
58
name: {{ include "nginx-ingress.serviceAccountName" . }}
69
namespace: {{ .Release.Namespace }}
710
labels:

deployments/helm-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ controller:
312312
customPorts: []
313313

314314
serviceAccount:
315+
## The annotations of the service account of the Ingress Controller pods.
316+
annotations: {}
317+
315318
## The name of the service account of the Ingress Controller pods. Used for RBAC.
316319
## Autogenerated if not set or set to "".
317320
# name: nginx-ingress

0 commit comments

Comments
 (0)