Adding annotations to the controller service account (#8173)

* fix: adding annotations to the controller service account

* fix: adding annotations to the controller service account
This commit is contained in:
Billy Walker 2022-01-27 03:12:50 +00:00 committed by GitHub
parent 6eecefd3da
commit 0c2070ef4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -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 | `""` | |

View file

@ -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 }}

View file

@ -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/