fix(n8n): parse as int when comparing with 0 (#3824)

* fix(n8n): parse as int when comparing with 0

* hmm
This commit is contained in:
Stavros Kois 2022-09-21 01:24:36 +03:00 committed by GitHub
parent 7f3ad53b70
commit b59564b7b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View File

@ -29,7 +29,7 @@ sources:
- https://docs.n8n.io/
- https://github.com/n8n-io/n8n
- https://hub.docker.com/r/n8nio/n8n
version: 4.0.56
version: 4.0.57
annotations:
truecharts.org/catagories: |
- media

View File

@ -20,9 +20,11 @@ data:
{{- if .Values.usermanagement.N8N_SMTP_HOST }}
N8N_SMTP_HOST: {{ .Values.usermanagement.N8N_SMTP_HOST | quote }}
{{- end }}
{{- if or .Values.usermanagement.N8N_SMTP_PORT ( eq 0 .Values.usermanagement.N8N_SMTP_PORT) }}
{{- if hasKey .Values.usermanagement "N8N_SMTP_PORT" }}
{{- if or .Values.usermanagement.N8N_SMTP_PORT (eq 0 (int .Values.usermanagement.N8N_SMTP_PORT)) }}
N8N_SMTP_PORT: {{ .Values.usermanagement.N8N_SMTP_PORT | quote }}
{{- end }}
{{- end }}
{{- if .Values.usermanagement.N8N_SMTP_USER }}
N8N_SMTP_USER: {{ .Values.usermanagement.N8N_SMTP_USER | quote }}
{{- end }}
@ -121,12 +123,16 @@ data:
{{- if .Values.executions.EXECUTIONS_MODE }}
EXECUTIONS_MODE: {{ .Values.executions.EXECUTIONS_MODE | quote }}
{{- end }}
{{- if or .Values.executions.EXECUTIONS_TIMEOUT ( eq 0 .Values.executions.EXECUTIONS_TIMEOUT ) }}
{{- if hasKey .Values.executions "EXECUTIONS_TIMEOUT" }}
{{- if or .Values.executions.EXECUTIONS_TIMEOUT (eq 0 (int .Values.executions.EXECUTIONS_TIMEOUT)) }}
EXECUTIONS_TIMEOUT: {{ .Values.executions.EXECUTIONS_TIMEOUT | quote }}
{{- end }}
{{- if or .Values.executions.EXECUTIONS_TIMEOUT_MAX ( eq 0 .Values.executions.EXECUTIONS_TIMEOUT_MAX ) }}
{{- end }}
{{- if hasKey .Values.executions "EXECUTIONS_TIMEOUT" }}
{{- if or .Values.executions.EXECUTIONS_TIMEOUT_MAX (eq 0 (int .Values.executions.EXECUTIONS_TIMEOUT_MAX)) }}
EXECUTIONS_TIMEOUT_MAX: {{ .Values.executions.EXECUTIONS_TIMEOUT_MAX | quote }}
{{- end }}
{{- end }}
{{- if .Values.executions.EXECUTIONS_DATA_SAVE_ON_ERROR }}
EXECUTIONS_DATA_SAVE_ON_ERROR: {{ .Values.executions.EXECUTIONS_DATA_SAVE_ON_ERROR | quote }}
{{- end }}
@ -142,12 +148,16 @@ data:
{{- if .Values.executions.EXECUTIONS_DATA_PRUNE }}
EXECUTIONS_DATA_PRUNE: {{ .Values.executions.EXECUTIONS_DATA_PRUNE | quote }}
{{- end }}
{{- if or .Values.executions.EXECUTIONS_DATA_MAX_AGE ( eq 0 .Values.executions.EXECUTIONS_DATA_MAX_AGE ) }}
{{- if hasKey .Values.executions "EXECUTIONS_TIMEOUT" }}
{{- if or .Values.executions.EXECUTIONS_DATA_MAX_AGE (eq 0 (int .Values.executions.EXECUTIONS_DATA_MAX_AGE)) }}
EXECUTIONS_DATA_MAX_AGE: {{ .Values.executions.EXECUTIONS_DATA_MAX_AGE | quote }}
{{- end }}
{{- if or .Values.executions.EXECUTIONS_DATA_PRUNE_TIMEOUT ( eq 0 .Values.executions.EXECUTIONS_DATA_PRUNE_TIMEOUT ) }}
{{- end }}
{{- if hasKey .Values.executions "EXECUTIONS_TIMEOUT" }}
{{- if or .Values.executions.EXECUTIONS_DATA_PRUNE_TIMEOUT ( eq 0 (int .Values.executions.EXECUTIONS_DATA_PRUNE_TIMEOUT)) }}
EXECUTIONS_DATA_PRUNE_TIMEOUT: {{ .Values.executions.EXECUTIONS_DATA_PRUNE_TIMEOUT | quote }}
{{- end }}
{{- end }}
{{/* Endpoints */}}
{{- if .Values.endpoints.WEBHOOK_URL }}
WEBHOOK_URL: {{ .Values.endpoints.WEBHOOK_URL | quote }}