How to prevent garbage collection for helm releases? #2373
-
|
Thanks for this awesome project that we've been adopting in my team over the past months! However, now I'm running into a question which I don't find a solution for in the docs: Is it possible to prevent garbage collection for helm releases. Specifically, I want to be able to delete a If I interpret the documentation here correctly, the annotation In the helmRelease API reference I don't see any field that would allow me to disable pruning. Am I missing something or is this not yet supported? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Before deleting a |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick response. I think being able to set this as a property of |
Beta Was this translation helpful? Give feedback.
-
|
does this trick work on |
Beta Was this translation helpful? Give feedback.
Before deleting a
HelmReleaseyou can suspend it withflux suspend hr <name>thenflux delete hr <name>, and the actual Helm release will not be garbage collected. You can do the same in Git by setting theHelmRelease.spec.suspendtotrue, then reconcile, then delete it from Git.