How does Helm handle CRDs, and why is it controversial?
AdvancedConceptHelm 3 Architecture & Release Storage
Answer
CRDs placed in the chart's crds/ directory are installed on helm install before anything else, are not templated, and are never upgraded or deleted by Helm. Skipping them is --skip-crds. This is deliberate: deleting a CRD deletes every custom resource of that type cluster-wide, and two releases may share one CRD.
The trade-off is that CRD schema changes in a new chart version are silently ignored. In production we either apply CRDs separately (kubectl apply --server-side -f crds/) as a pipeline step, use a dedicated CRD chart in templates/ with helm.sh/resource-policy: keep, or let Argo CD manage them with server-side apply.
More on Helm 3 Architecture & Release Storage
What is Helm, in one sentence?BeginnerDefine chart, release, revision and repository.BeginnerWhat was Tiller and why was it removed in Helm 3?BeginnerWhere does Helm 3 store release information?BeginnerWhat is inside a release Secret and how do you decode it?AdvancedWhat storage drivers does Helm support and how do you switch?Advanced