drop validations: considering cases of workflowNamespaces
, namespace
and singleNamespace
Signed-off-by: reinvantveer <reinvantveer@gmail.com>
This commit is contained in:
parent
232e72efbc
commit
bfd9eaa013
1 changed files with 0 additions and 19 deletions
|
@ -1,23 +1,4 @@
|
|||
{{- if .Values.workflow.serviceAccount.create -}}
|
||||
|
||||
{{- /*
|
||||
Cardinality-check the namespaces/namespace variables
|
||||
This type check is done only once, here. It would be overkill to perform it for other RBAC resources as well.
|
||||
*/}}
|
||||
{{- if and .Values.controller.workflowNamespaces .Values.workflow.namespace }}
|
||||
{{- fail "Please set either controller.workflowNamespaces or workflow.namespace for the service account, not both" }}
|
||||
{{- end }}
|
||||
|
||||
{{- /*
|
||||
Type-check the namespaces variable for being a list ("slice")
|
||||
This type check is done only once, here. It would be overkill to perform it for other RBAC resources as well.
|
||||
*/}}
|
||||
{{- if .Values.controller.workflowNamespaces }}
|
||||
{{- if not ( kindIs "slice" .Values.controller.workflowNamespaces ) }}
|
||||
{{- fail ( printf "workflow.namespaces is a slice, got %s %s" ( kindOf .Values.controller.workflowNamespaces ) .Values.controller.workflowNamespaces ) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{ range $namespace := append .Values.controller.workflowNamespaces .Values.workflow.namespace | compact | uniq }}
|
||||
---
|
||||
apiVersion: v1
|
||||
|
|
Loading…
Reference in a new issue