feat(argo-cd): Add annotations to the dex service account (#508)

* feat: Add annotations to the dex service account

Signed-off-by: Jacob Wernette <jawernette@ibm.com>
Signed-off-by: Jacob Wernette <werne2j@gmail.com>
This commit is contained in:
Jacob Wernette 2021-02-16 18:21:58 -05:00 committed by GitHub
parent 97e896126c
commit dbb1d80e13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -3,6 +3,12 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "argo-cd.dexServiceAccountName" . }}
{{- if .Values.dex.serviceAccount.annotations }}
annotations:
{{- range $key, $value := .Values.dex.serviceAccount.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.dex.name }}
helm.sh/chart: {{ include "argo-cd.chart" . }}