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

using envFrom clears env #63

Closed
btrepp opened this issue Mar 29, 2022 · 1 comment
Closed

using envFrom clears env #63

btrepp opened this issue Mar 29, 2022 · 1 comment

Comments

@btrepp
Copy link

btrepp commented Mar 29, 2022

Am using argocd to try to deploy, so want to seperate the secrets out of the helm file.
As such I have,

helm:
      values: |
        authentik:
        envFrom:
        - secretRef:
            name: authentik-secrets

Which seems to be read, but I think this is having the unfortunate effect of clearing all the config from the authentiik server.

Deployment ends up looking like

spec:
      containers:
        - args:
            - server
          env: null
          envFrom:
            - secretRef:
                name: authentik-secrets

and the authentik server pod logs.

{"event": "PostgreSQL connection failed, retrying... (could not connect to server: Connection refused\n\tIs the server running on host \"localhost\" (::1) and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to server: Connection refused\n\tIs the server running on host \"localhost\" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n)", "level": "info", "logger": "__main__", "timestamp": 1648550029.4643047}``

So it strikes me as a ending up in a very 'default' state. 

Is there an examples of using secrets along with the default config?. I could possibly retype it all in env, but there should be a way to just specify the key as a secret and use the sane defaults for the rest.
@btrepp
Copy link
Author

btrepp commented Mar 29, 2022

No. It doesn't. It seems the empty authentik: block was killing the templating. Removing that and variables appeared. So not an issue if you get the values.yaml correct

@btrepp btrepp closed this as completed Mar 29, 2022
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