Closed emoreth closed 1 year ago
@emoreth thanks for creating this issue! DevSpace should keep the annotations and labels in the latest beta version, but I agree helm will not delete the replaced deployment automatically if helm delete is executed. Rather run devspace purge
which should delete the release as well as cleanup the replaced pods
Thank you!
We try to run devspace purge
as much as possible but the muscle memory on helm delete
is quite strong on people. We also have some automation to delete stale helm charts that doesn't have access to devspace.
I'm still not using V6, so I'll try a workaround for V5. Thanks.
Is your feature request related to a problem? It is not a bug, but somewhat like a problem. When devspace replaces a pod, helm annotations are not kept:
Which causes those pods to be left behind when one does
helm delete app-release-name
.Which solution do you suggest? Add an option
keep_helm_annotations: true|false
defaulting to false to keep current behaviour.Which alternative solutions exist?
My current workaround is a custom command to proper cleanup resources:
Additional context
/kind feature