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

Alter charts to allow 100% reproducibility #199

Closed
technosophos opened this issue Mar 28, 2016 · 3 comments
Closed

Alter charts to allow 100% reproducibility #199

technosophos opened this issue Mar 28, 2016 · 3 comments
Assignees

Comments

@technosophos
Copy link
Member

The current Helm charts for deis will produce different manifest files each time they are run (actually, each time generate is run). Some situations may dictate that the manifests be reproducible.

Likewise, the reason for this is that many templates generate random secrets. Some may prefer to not have random secrets, but to supply their own.

The solution seems to be to simply support template variables for the params that currently allow only generated ones.

{{$pw := rand 16}}
Secret: {{default $pw .MyPassword}}

That would allow people to supply values via a TOML/YAML/JSON file like we do with the object storage stuff, but would default back to a randomly generated password otherwise.

@slack
Copy link
Member

slack commented Mar 28, 2016

This is particularly important if the Workflow install has to be recovered from backups. Controller to database username/password, and builder ssh key (once that moves to secret) at the very least.

Any thoughts on being able to dump a "values" file to hold the results of randomly generated values?

@smothiki
Copy link
Contributor

I think this helm/helm#435 fixes overwriting existing generated template files .
cc @mboersma

@bacongobbler
Copy link
Member

this has since been implemented, because templates cannot be overwritten unless you supply -f when running helm generate to prevent overwriting those files.

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

4 participants