Closed hinrichd closed 1 year ago
There is an easy way to tell helm not to delete a resource when doing a helm uninstall by an annotations. "helm.sh/resource-policy": keep
Would be nice to see this in the helm charts: persistence.enabled=true
Hey @hinrichd,
We could add this, if you are okay that you will have resource that becomes orphaned.
Hey @dirien
Thank you, this would be okay and well known from other charts!
Hey @hinrichd,
the new release 0.23.1
has now the value persistence.keepPVC
to keep the resource after deleting the helm release using the "helm.sh/resource-policy": keep
annotation!
Hey @dirien,
this works very well for my current test deployment. With persistence.keepPVC: true
I can reuse the existing Claim via persistence.existingClaim: node-red
when have to perform an helm uninstall; helm install
.
Flows and Nodes installed in the Webinterface via Palette stay installed.
Thank you
Is your feature request related to a problem? Please describe.
Thank you for maintaining the nodered chart.
I want to reuse an existing pvc in case I have to reinstall the chart and do not want to lose my existing flows and data. Actually a "helm uninstall nodered" will delete the pvc resource and can not be reused by the existing claim key/value.
Describe the solution you'd like
Do not delete PVC resources when performing helm uninstall when key "persistences.keep=enabled" is set.
Describe alternatives you've considered
Alternatives to this would be a general way to import flows as also install nodes from configmap. I case of an reinstall, pod crash etc. the flows and nodes would be reloaded. https://github.com/SchwarzIT/node-red-chart/issues/198
Search
Code of Conduct
Additional context
No response