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
Upgrade --install fails if previously uninstalled with --keep-history #9274
Comments
I believe this is because to install over a release that has been previously uninstalled, you need to provide the From
|
But Of course we could have separate logical branches in deployment scripts and make sure that we use either |
I feel like this is a case where it goes against the norm. As the help text suggests, I would be opposed to automatically adding unsafe flags under the user's nose. In these scenarios it's probably best for the user to intervene and use the |
Can you give a bit more context? |
In the case where an "upgrade or install" is used in a typical scenario, absolutely. In this case however, to perform an install would be dangerous and could lead to unintentional behaviour. It is unclear whether the user invoking This is also why Hope that helps. |
Closing this as intentional behaviour. Your call-to-action is to either invoke After moving forward with either of those paths, you can call |
Ok, thanks. |
I would say it is pretty clear, that with "Solving" Helm3 issues by saying "it is intentional behaviour" is bad. Maybe it is time for Helm4 to fix its logic? |
Eh, and what is the actual behaviour then? The documentation on this flag is rather short and I personally do not see how it is dangerous. I am now quite hesitant to add this, since the documentation says it should not be used in production. But on the other hand I think, that keeping history of deployments should on the contrary be a production best practice. I added |
Output of
helm version
:Output of
kubectl version
:Cloud Provider/Platform (AKS, GKE, Minikube etc.):
GKE
This may be closely related to #5595, but I see that one is already closed.
Reproduction steps:
helm uninstall --keep-history app
helm upgrade --install app app
helm upgrade
fails with "app has no deployed releases".This workflow is used when
app
is a distributed application.helm uninstall
is called conditionlly when changes are not backwards compatible and a rolling release cannot be done. Otherwise we just callhelm upgrade
withouthelm uninstall
The text was updated successfully, but these errors were encountered: