Playing around with trying n8n, so I ran into a case where my minimally-defined configuration required no secret config since I'm using extraSecretEnv to set the database password. That means that the secret isn't getting created, and trying to set N8N_ENCRYPTION_KEY from a nonexistent Secret will fail the installation. (FWIW, I didn't configure n8n.encryption_key either)
This will conditionally set the environment variable if .Values.n8n.encryption_key is defined (which should also generate the secret).
Playing around with trying n8n, so I ran into a case where my minimally-defined configuration required no
secret
config since I'm usingextraSecretEnv
to set the database password. That means that the secret isn't getting created, and trying to setN8N_ENCRYPTION_KEY
from a nonexistent Secret will fail the installation. (FWIW, I didn't configuren8n.encryption_key
either)This will conditionally set the environment variable if
.Values.n8n.encryption_key
is defined (which should also generate the secret).