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
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
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:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
@ -24,9 +24,9 @@ rules:
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- watch
|
- watch
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.workflow.rbac.create -}}
|
{{- if .Values.workflow.rbac.create -}}
|
||||||
|
|
||||||
{{- if .Values.workflow.namespaces }}
|
{{- if .Values.workflow.namespaces }}
|
||||||
{{- range .Values.workflow.namespaces}}
|
{{- range .Values.workflow.namespaces}}
|
||||||
|
@ -38,6 +38,7 @@ rules:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
||||||
{{- include "workflow-role-base" . }}
|
{{- include "workflow-role-base" . }}
|
||||||
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
||||||
{{- if .Values.workflow.namespace }}
|
{{- if .Values.workflow.namespace }}
|
||||||
|
@ -46,4 +47,4 @@ rules:
|
||||||
{{- include "workflow-role-rules" . }}
|
{{- include "workflow-role-rules" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -3,9 +3,9 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.workflow.serviceAccount.create -}}
|
{{- if .Values.workflow.serviceAccount.create -}}
|
||||||
|
|
||||||
{{- /*
|
{{- /*
|
||||||
Cardinality-check the namespaces/namespace variables
|
Cardinality-check the namespaces/namespace variables
|
||||||
|
@ -53,4 +53,4 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue