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
I understand that it is quite expected behavior of helm to delete all the resources that were created while installation, but isn't unsafe to remove persistent volumes (and claims as well)?
Maybe after release deletion I would like old volumes to be assosiated with newly created resources. What do you think?
I was under the impression that we did not remove the underlying volume/claim. Is that right @viglesiasce ?
EDIT: Oh, and there is an annotation for preserving resources that you don't want deleted. You can add the annotation: "helm.sh/resource-policy": keep. We might need to document that somewhere.
Reacted by hdave, Hamza, Yannig, Vijay Dharap, Dmitri and Sébastien de Melo
When using StatefulSets the PVCs will be left alone.
If using the PVC template in the chart then it will be deleted. We should add resource-policy: keep to the charts where we think it should be implemented although deleting the release is an indication that you want all of the resources to be deleted.
Reacted by Adnan Abdulhussein, Santiago Nuñez-Cacho, Oli, Mohammad Badruzzaman, brandong954, Pradeep Chhetri, Henning Kilset, Oleg, Hemanth Makkapati, Corin Langosch and 5 more
I do the like the model of letting the user define this via annotation. I think we might want to make the default to keep them around unless the annotation is set. The other question is how to handle a --purge here, as I'd think most users would expect EVERYTHING to be forcibly removed on purge. Although, what if I want all the rollback configsets removed but not my PVC?
Yeah, I think we'd have to assume that if you say you want to keep the PVC, that means you don't ever want Helm to delete it.
Reacted by Ava Czechowska, Olaf Heydorn, Mircea Danila Dumitrescu, Karl Skewes, notque, Tomek Święcicki, Ryan Morehart, Eric Bailey, Corin Langosch, Andreth Salazar and 1 more
Removal of PV created via PVC is still controlled not by heml, it is defined by reclaim policy on PV, should be Retain, but setting it via PVC annotations is not supported yet.
Activity
technosophos commentedon Jan 26, 2017
I was under the impression that we did not remove the underlying volume/claim. Is that right @viglesiasce ?
EDIT: Oh, and there is an annotation for preserving resources that you don't want deleted. You can add the annotation:
"helm.sh/resource-policy": keep. We might need to document that somewhere.wclr commentedon Jan 26, 2017
you mean anotation to PVC resource? But it is not very convenient with 3rd party charts right? For example what should be done with mongodb chart?
wclr commentedon Jan 30, 2017
@technosophos ?
viglesiasce commentedon Jan 30, 2017
When using StatefulSets the PVCs will be left alone.
If using the PVC template in the chart then it will be deleted. We should add resource-policy: keep to the charts where we think it should be implemented although deleting the release is an indication that you want all of the resources to be deleted.
technosophos commentedon Jan 30, 2017
I guess the suggestion, then, is to fork charts and modify them on your own.
viglesiasce commentedon Jan 30, 2017
...and then submit that change back as PR to the charts repo.
technosophos commentedon Feb 14, 2017
I think we should probably make it a best-practice to add this annotation to every chart that uses a PVC:
Or, if we prefer, the default can be "delete". But the idea is to make it so that there is always a clear path for the user to toggle this.
/cc @prydonius
Edit: See helm/charts#44
InAnimaTe commentedon Feb 21, 2017
I do the like the model of letting the user define this via annotation. I think we might want to make the default to keep them around unless the annotation is set. The other question is how to handle a
--purgehere, as I'd think most users would expect EVERYTHING to be forcibly removed on purge. Although, what if I want all the rollback configsets removed but not my PVC?technosophos commentedon Feb 24, 2017
Yeah, I think we'd have to assume that if you say you want to keep the PVC, that means you don't ever want Helm to delete it.
wclr commentedon Jul 10, 2017
Removal of PV created via PVC is still controlled not by
heml, it is defined by reclaim policy on PV, should beRetain, but setting it via PVC annotations is not supported yet.May be can be closed.