k8wiz
Helm
Hard
Concepts

You re-annotate ConfigMap flags so release 'platform' owns it, then upgrade release 'web' with a chart that no longer renders it. What happens to flags?

Select your answer:

Show answer and explanation

Answer: Helm deletes it unless it has helm.sh/resource-policy: keep

Explanation

On upgrade, Helm deletes objects that were in the previous manifest but not in the new one, and the only thing it checks on the live object first is the helm.sh/resource-policy: keep annotation. It doesn't check who owns the object now. The ownership check before deleting was added to helm uninstall in 4.3, not to upgrade.

Read more about Helm