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
{{ message }}
Repository navigation
Annotation "helm.sh/resource-policy: keep" should never delete a resource #3673
I noticed that the annotation "helm.sh/resource-policy: keep" on a resource is not honored when the name of the resource is changed.
This is a big problem in my case where I used the annotation on a namespace, and a misconfiguration of the name resulted in the removal of the namespace.
Reacted by Thomas Auffredou, Bryan FRIMIN, notque, Krish, Tobias Giese, Krzysztof Nazarewski (kdn), Artem Pastukhov and James Ravn
Helm still does delete resources marked with "helm.sh/resource-policy": keep when running helm uninstall
I see it was fixed for Update method but not for Delete method, am I right?
Reacted by Durgesh Gidwani, smaanika-px and Siarhei Hreben
Activity
pastukhov commentedon Oct 9, 2018
It also delete resource when
helm upgradecausejsravn commentedon Dec 14, 2018
Just got bitten by this. Also if you remove the resource from the helm chart (by accident), helm deletes it! Whoops.
jsravn commentedon Jan 28, 2019
@bacongobbler what are your thoughts on this bug? Would you be open to a contribution to fix this?
fix(tiller): respect resource policy on upgrade
fix(tiller): respect resource policy on upgrade
jsravn commentedon Jan 29, 2019
I made #5225 to try and fix this.
fix(tiller): respect resource policy on upgrade (#5225)
fix(tiller): respect resource policy on upgrade (helm#5225)
ml0renz0 commentedon Apr 25, 2022
Helm still does delete resources marked with
"helm.sh/resource-policy": keepwhen runninghelm uninstallI see it was fixed for
Updatemethod but not forDeletemethod, am I right?