What does the `crds/` directory do differently from `templates/`?
IntermediateConceptChart Structure & Metadata
Answer
Files in crds/ are plain YAML (no templating), installed before anything else on first install, and ignored on upgrade and uninstall. They are not part of the release manifest, so helm get manifest does not show them. Use helm show crds <chart> to view them and --skip-crds to skip them. If a chart needs to template a CRD (for example with a conversion webhook CA), it must go in templates/ and accept the upgrade and deletion risks.
More on Chart Structure & Metadata
What files does `helm create mychart` generate and which ones matter?BeginnerWhat are the required fields in `Chart.yaml`?BeginnerWhat is the difference between `version` and `appVersion`?BeginnerWhy should `appVersion` be quoted in `Chart.yaml`?BeginnerWhat does `type: library` vs `type: application` mean?BeginnerWhat is the `kubeVersion` field used for?Intermediate