Interview Prep/Helm/Hooks, Tests, GitOps & Secrets

`helm uninstall` completed, but PVCs, a hook ConfigMap and a CRD are still in the cluster.

BeginnerTroubleshootingHooks, Tests, GitOps & Secrets
Answer

Likely causes → Expected behavior: PVCs created by StatefulSet volumeClaimTemplates are not part of the release; hook resources without a delete policy are not tracked; CRDs from crds/ are never deleted; resource-policy: keep objects are retained.

Diagnose → kubectl get pvc,cm,secret -n shop; kubectl get crd | grep shop.

Fix → Delete leftovers deliberately (kubectl delete pvc -n shop -l app.kubernetes.io/instance=shop), after confirming data is not needed.

Prevent → Document what uninstall leaves behind; delete policies on hooks.

All Helm questions Roadmap: Helm

More on Hooks, Tests, GitOps & Secrets