Skip to content

Commit

Permalink
conditionally add env (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
bamsammich authored May 26, 2023
1 parent 6227656 commit 1fa0061
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ Selector labels
{{ end }}
- name: "N8N_PORT" #! we better set the port once again as ENV Var, see: https://community.n8n.io/t/default-config-is-not-set-or-the-port-to-be-more-precise/3158/3?u=vad1mo
value: {{ get .Values.config "port" | default "5678" | quote }}
{{- if .Values.n8n.encryption_key }}
- name: "N8N_ENCRYPTION_KEY"
valueFrom:
secretKeyRef:
key: N8N_ENCRYPTION_KEY
name: {{ include "n8n.fullname" . }}
{{- end }}
{{- if or .Values.config .Values.secret }}
- name: "N8N_CONFIG_FILES"
value: {{ include "n8n.configFiles" . | quote }}
Expand All @@ -82,7 +84,7 @@ Selector labels
value: "{{ .Values.scaling.redis.host }}"
{{ else }}
value: "{{ .Release.Name }}-redis-master"
{{ end }}
{{ end }}
- name: "EXECUTIONS_MODE"
value: "queue"
{{ end }}
Expand Down

0 comments on commit 1fa0061

Please sign in to comment.