argocd-helm/charts/argo-workflows/templates/controller/workflow-sa.yaml
Rein van 't Veer fa7ba522e0
fix(argo-workflows): Fix typo reported in #876 (#881)
* fix typo. Fixes #876

Signed-off-by: reinvantveer <reinvantveer@gmail.com>

* change notes and version bump

Signed-off-by: reinvantveer <reinvantveer@gmail.com>

* fix typos in role and service account

Signed-off-by: reinvantveer <reinvantveer@gmail.com>

* update change notes

Signed-off-by: reinvantveer <reinvantveer@gmail.com>
2021-08-20 09:24:23 -07:00

16 lines
558 B
YAML

{{- if .Values.workflow.serviceAccount.create -}}
{{- range $namespace := or .Values.singleNamespace false | ternary (list "") (append .Values.controller.workflowNamespaces (coalesce .Values.workflow.namespace .Release.Namespace) | uniq) }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ $.Values.workflow.serviceAccount.name }}
{{- with $namespace }}
namespace: {{ . }}
{{- end }}
{{- with $.Values.workflow.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}