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

Don't impose to create secret #34

Closed
armandleopold opened this issue Sep 16, 2021 · 4 comments
Closed

Don't impose to create secret #34

armandleopold opened this issue Sep 16, 2021 · 4 comments

Comments

@armandleopold
Copy link

Hello,
You shouldn't impose user to create secrets before installing helm package. It goes against best practices of infrastructure as code where you define all your values in the hlem charts.
For exemple, we use Hashicorp Vault to pull our credentials directly in our values.yaml files before installing the chart.

By imposing us to create a secret file containing our secrets it goes against our policies.

existingSecret: mysql-secrets

existingPasswordSecret: neo4j-secrets

Please removes thoses lines as they can't be overriten.

@dexter-mh-lee
Copy link
Contributor

Sorry about the late reply, we added these lines for easy spin up of required components. By uncommenting this, a lot of folks will have to modify values.yaml instead of using it as is.

You can unset a field by using this approach when installing
--set mysql.existingSecret=null

@dexter-mh-lee
Copy link
Contributor

@armandleopold
Copy link
Author

Hello Dexter, no you cannot from nested dependency Charts :
helm/helm#5184

@armandleopold
Copy link
Author

I had to use a hack :

      # Bug Fix helm drop default datahub values
      sed -i 's/existingPasswordSecret: neo4j-secrets//' charts/datahub-prerequisites/values.yaml
      sed -i 's/existingSecret: mysql-secrets//' charts/datahub-prerequisites/values.yaml

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

2 participants