Is there's a way to NOT remove certain resources from the cluster when uninstalling releases, and to re-use them (without conflict) when re-installing?
I was thinking of resources such as secrets and persistent volumes
Is there's a way to NOT remove certain resources from the cluster when uninstalling releases, and to re-use them (without conflict) when re-installing?
I was thinking of resources such as secrets and persistent volumes
You can Tell Helm Not To Uninstall a Resource by adding the following annotation:
kind: Secret
metadata:
annotations:
"helm.sh/resource-policy": keep
You can delete the secret associated with the release, for example:
kubectl -n argocd delete secrets -l name=<your helm release name>,owner=helm
and then the chart will no longer be seen as installed in your cluster (or that particular release you removed)
© 2022 - 2025 — McMap. All rights reserved.
helm
(open since 2022) github.com/helm/helm/issues/10890. Even with the annotation, the resources will be deleted when runninghelm uninstall
. – Actium