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

Save helm chart state to yaml #2017

Closed
kozikow opened this issue Feb 23, 2017 · 3 comments
Closed

Save helm chart state to yaml #2017

kozikow opened this issue Feb 23, 2017 · 3 comments

Comments

@kozikow
Copy link

kozikow commented Feb 23, 2017

I wrote a HN comment about this feature request (https://news.ycombinator.com/item?id=13716835), but I realized maybe bug would be better.
I personally would find it useful if helm would provide way of saving the template to yaml. E.g. only install helm "locally", but when deploying to prod just use plain yaml files based on config created via helm.

Why I would want it:

  • Easier to do minor tweaks on top of the helm config, if variables exported by helm do not support it
  • I find it elegant that all state required to restore state of the cluster are in yaml files. Helm require installation of apps for each cluster
  • IIUC if app installed via helm changes between I install it on local cluster and prod cluster I may end up with different versions of the app

I know I can do "kubectl get pod/my-pod -o yaml". Firstly, I would have to figure our which variables are permanent (state variable like "nodeName" are mixed with permanent variables like "restartPolicy"). Secondly, I would also have to figure out all k8s objects that were created by helm.

@technosophos
Copy link
Member

The helm-template plugin does this. We're talking about rolling that feature into Helm.

Importantly, though, rendering templates client-side has disadvantages. Helm charts often have logic that is dependent on the cluster itself ({{.Capabilities}} objects, {{.Release.IsInstalled}}, PV setup, and naming). Rendering these client-side will produce lower-fidelity results.

@technosophos
Copy link
Member

@kozikow Can you verify for me that this issue is basically what you'd like to see in Helm core? #1887

@jascott1
Copy link
Contributor

@kozikow Closing due to inactivity. Please re-open if the helm-template solution does not solve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants