fix indents
Signed-off-by: reinvantveer <rein.van.t.veer@geodan.nl>
This commit is contained in:
parent
c7ede31b45
commit
612bbf1ab6
2 changed files with 39 additions and 38 deletions
|
@ -3,11 +3,11 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/* workflow-role-rules are defined separately so they can be inserted after templating the metadata */}}
|
||||
{{/* workflow-role-rules are defined separately so they can be inserted after templating the metadata */}}
|
||||
|
||||
{{- define "workflow-role-rules" }}
|
||||
{{- define "workflow-role-rules" }}
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
|
@ -24,9 +24,9 @@ rules:
|
|||
verbs:
|
||||
- get
|
||||
- watch
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.workflow.rbac.create -}}
|
||||
{{- if .Values.workflow.rbac.create -}}
|
||||
|
||||
{{- if .Values.workflow.namespaces }}
|
||||
{{- range .Values.workflow.namespaces}}
|
||||
|
@ -38,6 +38,7 @@ rules:
|
|||
{{- end }}
|
||||
|
||||
{{- else }}
|
||||
|
||||
{{- include "workflow-role-base" . }}
|
||||
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
||||
{{- if .Values.workflow.namespace }}
|
||||
|
@ -46,4 +47,4 @@ rules:
|
|||
{{- include "workflow-role-rules" . }}
|
||||
{{- end }}
|
||||
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -3,9 +3,9 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.workflow.serviceAccount.create -}}
|
||||
{{- if .Values.workflow.serviceAccount.create -}}
|
||||
|
||||
{{- /*
|
||||
Cardinality-check the namespaces/namespace variables
|
||||
|
@ -53,4 +53,4 @@ metadata:
|
|||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue