Hook Deletion Policies
Cleaning up hook resources after they succeed.
Hooks Linger
By default a hook resource stays in the cluster after it runs. Without cleanup, old migration Jobs and pods pile up release after release.
The Delete Policy
You control cleanup with the helm.sh/hook-delete-policy annotation. It tells Helm exactly when to remove a hook resource it created.
annotations:
"helm.sh/hook-delete-policy": hook-succeeded