You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When helm install --atomic encounters an error, any resources that already existed in the cluster and conflict with resources which would be created by helm install are deleted during rollback. The --atomic argument should allow existing resources to be left intact instead of deleting them.
After pairing on this issue, @thomastaylor312 and I identified a bigger design issue. For --atomic, we just need pkg/kube to return the results of the install/upgrade - including what resources failed to create - then reconcile those resources.
However, there's a similar case where we want to reconcile a failed helm install/upgrade. Because Helm doesn't know the resources that Helm failed to create, a helm delete results in deleting all resources the release was tracking (see #3319).
It'd be great if we can identify a fix that addresses both issues at the same time.
Activity
hickeyma commentedon Sep 18, 2019
@thomastaylor312 Is this the expected behaviour for
--atomic?thomastaylor312 commentedon Sep 18, 2019
Nope, that is definitely a bug. Good catch on this @jlegrone. I'll take a look at the code when I am in there tomorrow working on porting some stuff
bacongobbler commentedon Sep 23, 2019
After pairing on this issue, @thomastaylor312 and I identified a bigger design issue. For
--atomic, we just needpkg/kubeto return the results of the install/upgrade - including what resources failed to create - then reconcile those resources.However, there's a similar case where we want to reconcile a failed
helm install/upgrade. Because Helm doesn't know the resources that Helm failed to create, ahelm deleteresults in deleting all resources the release was tracking (see #3319).It'd be great if we can identify a fix that addresses both issues at the same time.
fix(action): Protects against current resource conflicts
thomastaylor312 commentedon Oct 1, 2019
Closed in #6542