-
Notifications
You must be signed in to change notification settings - Fork 51
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
Auto-rollback of failed upgrade fails with some resources #421
Comments
Before I try patching the library to see whether removing |
Hey thanks for the report @porridge! The intention behind use of the I was actually discussing a similar problem that we discovered in We thus far have opted to specifically disable the auto-uninstall/auto-rollback behavior because we are concerned that rolling back (I guess uninstalling a failed release would probably be fine) could actually exacerbate problems if a partial upgrade has performed some migration that the previous version cannot handle. |
Oh, this sounds risky w.r.t. storage-related resources 😬 I mean, deleting and recreating a PVC if something goes wrong could be a disaster. 🙈 |
It seems that helm's
force
option for rollbacks (that this library uses here) does not deal well with some resources.When using the stackrox operator the error looks like this:
It may be easier to understand what is going on on the following example, since the issue also happens with helm CLI. It's just that while the CLI warns to exercise caution with this option, the helm-operator-plugins library uses
force
automatically and unconditionally.Let's say I have a chart that contains just a PVC such as this:
Then I:
This works fine. Now I create any pod that uses the PVC to make it flip to a Bound state.
Then I try to apply a broken upgrade:
This is expected. Now in this case the library would try to roll back, but with the force option this fails:
And then we fall into the loop as described in #224
The text was updated successfully, but these errors were encountered: