helm-classic icon indicating copy to clipboard operation
helm-classic copied to clipboard

helm install should rollback on failure

Open adamreese opened this issue 9 years ago • 4 comments

helm should cleanup any successful manifest uploads if one fails

adamreese avatar Dec 02 '15 19:12 adamreese

:+1: In testing the "deis" chart I ran into errors, and I expected to be able to helm install again, but I couldn't because some objects were still installed. helm uninstall <chart> && helm install <chart> works, but I did expect helm install essentially to be atomic.

mboersma avatar Dec 03 '15 00:12 mboersma

As we're starting to do the automatic dependency resolution work, I'm thinking that...

  • On failure, a chart should uninstall any of the components it already installed, but...
  • A chart should not uninstall any of the charts it depends upon, even if those were installed expressly to satisfy this chart's dependency requirements.

That will keep us from potentially harmful bugs where we remove charts that were actually being used.

Does that make sense?

technosophos avatar Dec 03 '15 00:12 technosophos

@technosophos that behavior makes sense for me when dependency resolution is in place, unless running helm install again would error on the dependent charts already being installed. But it sounds like dependency management would be smart enough not to.

mboersma avatar Dec 03 '15 00:12 mboersma

:+1: also makes sense to me. tiny thing - it'd be helpful to log when helm install runs into already-installed dependencies.

arschles avatar Dec 03 '15 16:12 arschles