Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditionally add N8N_ENCRYPTION_KEY environment variable #34

Merged
merged 1 commit into from
May 26, 2023

Conversation

bamsammich
Copy link
Contributor

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).

@Vad1mo Vad1mo merged commit 1fa0061 into 8gears:master May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants