argocd-helm/charts/argo-workflows/templates/controller/workflow-sa.yaml
Tadayuki Onishi e01c613046
feat(argo-workflows): Assign common labels to some resources (#1369)
* feat(argo-workflows): Assign common labels to controller resources

Signed-off-by: kenchan0130 <tt.tanishi100@gmail.com>

* feat(argo-workflows): Assign common labels to the server sa resource

Signed-off-by: kenchan0130 <tt.tanishi100@gmail.com>

* Update argo-workflows Chart.yaml

Signed-off-by: kenchan0130 <tt.tanishi100@gmail.com>
2022-07-13 09:10:34 +09:00

18 lines
711 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 }}
labels:
{{- include "argo-workflows.labels" (dict "context" $ "component" $.Values.controller.name "name" $.Values.controller.name) | nindent 4 }}
{{- with $namespace }}
namespace: {{ . }}
{{- end }}
{{- with $.Values.workflow.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}