a5r0n / n8n-chart

Helm Chart for n8n.io
Apache License 2.0
23 stars 7 forks source link

Use extra vars for deployment #45

Open abennani82 opened 2 months ago

abennani82 commented 2 months ago

Hi, I had to enable emails on n8n and to do that i have to deploy new env. It is not possible with the actual chart version to add new env vars others then those expected.

It is possible de add possibility to have extraVars sections in values. extraVars: var1: value1 var2: value2 in n8n config map add at the end after other envs : {{- range $key, $value := .Values.extraEnv }}

{{ if Values.extraEnv }} {{ .Values.extraEnv | toYaml | trim | nindent 2 }} {{ end }} Regards

a5r0n commented 2 months ago

Great point @abennani82 👍 Env vars are coming from the config map, so this is the right place to add this, PR are welcome!

abennani82 commented 2 months ago

PR ready for review. Thanks