Interview Prep/Helm/Releases, Upgrades & Rollbacks

Your release takes ownership of a Namespace object. Someone uninstalls the release. What happens?

AdvancedScenarioReleases, Upgrades & Rollbacks
Answer

Situation read → If the chart templated the Namespace, uninstall deletes it, and with it everything inside, including other releases' resources and PVCs.

What I'd do →

  1. Never template the release's own namespace; use --create-namespace (not tracked by the release) or create namespaces via a platform pipeline.
  2. If a chart must create namespaces, annotate them helm.sh/resource-policy: keep.
  3. Audit existing charts: helm get manifest <rel> | grep -B2 -A2 'kind: Namespace'.

Why → Namespace deletion cascades to everything inside.

Interview tip → Note that --create-namespace namespaces are not deleted by helm uninstall.

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks