What does the `templates/` directory contain and how are files treated?
BeginnerConceptChart Structure & Metadata
Answer
Every file in templates/ is rendered through the template engine. Files producing YAML are sent to Kubernetes; a file can contain multiple documents separated by ---. Exceptions:
- Files starting with
_(like_helpers.tpl) are not emitted as manifests; they holddefineblocks. NOTES.txtis rendered and printed to the user after install or upgrade.- Files that render to only whitespace or comments are skipped, which is how
{{- if .Values.ingress.enabled }}wrappers work.
Subdirectories such as templates/tests/ are rendered too.
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