feat(argo): Allow setting up ServiceAccount and RBAC resources for running workflows (#402)
This commit is contained in:
parent
cc52713dbd
commit
cddd6a6048
5 changed files with 67 additions and 1 deletions
13
charts/argo/templates/workflow-sa.yaml
Normal file
13
charts/argo/templates/workflow-sa.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{- if .Values.workflow.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Values.workflow.serviceAccount.name }}
|
||||
{{- if .Values.workflow.namespace }}
|
||||
namespace: {{ .Values.workflow.namespace }}
|
||||
{{- end }}
|
||||
{{- with .Values.workflow.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue