argocd-helm/charts/argocd-notifications/templates/serviceaccount.yaml
César Yuji Okuti e2975df4c0
feat(argocd-notifications): add service account annotations (#673)
* add service account to argocd notifications

Signed-off-by: Cesar Okuti <cesar.okuti@gmail.com>

* change chart.yaml

Signed-off-by: Cesar Okuti <cesar.okuti@gmail.com>

* remove dots and quotes from toYaml serviceaccount

Signed-off-by: Cesar Okuti <cesar.okuti@gmail.com>

* chore: Apply suggestions from code review

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>

* fix: bump chart version

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>
Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2021-05-26 23:41:33 +02:00

12 lines
345 B
YAML

{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "argocd-notifications.serviceAccountName" . }}
labels:
{{- include "argocd-notifications.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}