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

[Helm Chart] load DB password from third-party secret #16245

Closed
elyzov opened this issue Aug 13, 2021 · 0 comments
Closed

[Helm Chart] load DB password from third-party secret #16245

elyzov opened this issue Aug 13, 2021 · 0 comments

Comments

@elyzov
Copy link
Contributor

elyzov commented Aug 13, 2021

Is your feature request related to a problem? Please describe.
I use zalando operator to deploy postgresql DB nearby. Zalando operator puts postgresql password to separate secret.
But at the moment, there is no ability to load environment variables from third-party secrets using valueFrom syntax.

Describe the solution you'd like
I want to introduce one more extraEnvRaw variable, which will be injected into the env section of container as is:

extraEnvRaw:
  - name: DB_PASS
    valueFrom:
      secretKeyRef:
        name: superset.superset-postgres.credentials.postgresql.acid.zalan.do
        key: password

Describe alternatives you've considered
We can consider one more abstraction over valueFrom syntax. But I prefer to implement more general and flexible solution.

Additional context
I saw such approach has been used in other charts, like fluentd chart.

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