
* Add labels for ServiceAccounts Signed-off-by: Eugene Lugovtsov <lug.zhenia@gmail.com> * fix workflow serviceaccount labels Signed-off-by: Eugene Lugovtsov <lug.zhenia@gmail.com> * fix docs Signed-off-by: Eugene Lugovtsov <lug.zhenia@gmail.com> Signed-off-by: Eugene Lugovtsov <lug.zhenia@gmail.com>
15 lines
549 B
YAML
15 lines
549 B
YAML
{{- if .Values.controller.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
|
labels:
|
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
|
{{- with .Values.controller.serviceAccount.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{ with .Values.controller.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml .| nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|