Files
chart/library/ix-dev/community/n8n/templates/_validation.tpl
Stavros Kois 1c3f7eaf4a NAS-123991 / 24.04 / add n8n to community train (#1520)
* init commit

* add few templates

* add initial implementation

* typo

* add host

* fix lint

* whops

* quote

* fix permisions

* no port

* fix probes

* test user

* readme

* add ui

* typo

* use shortcut for regex

* add redis on metadata

* clean notes

* fixed path

* move down

* fix upgrade json
2023-09-12 21:37:16 +03:00

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 -}}