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

Env Var Override #29

Open
ghost opened this issue Oct 6, 2021 · 1 comment
Open

Env Var Override #29

ghost opened this issue Oct 6, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 6, 2021

I've got a question, possibly a behavior question, about setting environment variables for the deployment:

env:
  AUTHENTIK_POSTGRESQL_HOSTNANE: [redacted]
  AUTHENTIK_POSTGRESQL__NAME: [redacted]

However when I create a release like this, deployment ends up failing because it can't reach postgres, and when I look at the deployment the AUTHENTIK_POSTGRESQL__HOSTNAME and AUTHENTIK_POSTGRESQL__NAME variables are defined twice. Once with my values, and once with seemingly default values. From the deployment template it looks like that's happening because of

{{- include "authentik.env" (dict "root" $ "values" $.Values.authentik) | indent 12 }}
So I guess what I'm wondering is if it's possible to merge those two sources of env vars rather than concatenating them.

@BeryJu
Copy link
Member

BeryJu commented Oct 14, 2021

While this should be possible in theory, what's the reasoning behind wanting to set environment variables and not use the full config structure?

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

No branches or pull requests

1 participant