Skip to content

Commit

Permalink
Adding annotations to the controller service account (#8173)
Browse files Browse the repository at this point in the history
* fix: adding annotations to the controller service account

* fix: adding annotations to the controller service account
  • Loading branch information
bwlkr authored Jan 27, 2022
1 parent 6eecefd commit 0c2070e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/ingress-nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ Kubernetes: `>=1.19.0-0`
| rbac.create | bool | `true` | |
| rbac.scope | bool | `false` | |
| revisionHistoryLimit | int | `10` | Rollback limit |
| serviceAccount.annotations | object | `{}` | Annotations for the controller service account |
| serviceAccount.automountServiceAccountToken | bool | `true` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/ingress-nginx/templates/controller-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ metadata:
{{- end }}
name: {{ template "ingress-nginx.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
{{- end }}
1 change: 1 addition & 0 deletions charts/ingress-nginx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ serviceAccount:
create: true
name: ""
automountServiceAccountToken: true
annotations: {}

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

0 comments on commit 0c2070e

Please sign in to comment.