mirror of
https://github.com/truenas/charts.git
synced 2026-02-03 02:23:49 +08:00
7 lines
344 B
Smarty
7 lines
344 B
Smarty
{{- define "n8n.validation" -}}
|
|
{{- $host := .Values.n8nConfig.webHost -}}
|
|
{{- if or (hasPrefix "http://" $host) (hasPrefix "https://" $host) (hasSuffix "/" $host) (contains ":" $host) -}}
|
|
{{- fail "n8n - Do not start with [http(s)://] or have a trailing slash [/] or have port [:###] in [Web Host] field" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|