← All notes

Helm templates: accessing files inside templates

Answer: Helm provides access to files through the Files object.

What can be read

This makes it easy to import one template from within another template.

Charts must stay under 1M because of storage limits on Kubernetes objects.

Some files cannot be read through the Files object, usually for security reasons.

Files in the templates directory cannot be accessed.

Files excluded using helmignore cannot be accessed.

Path helpers

Helm also imports many functions from the Go path package for your use.

Those helpers use the same names as in the Go package, but with a lowercase first letter.

You can create a variable to hold a reference to the Files object.

A ConfigMap example in the docs loops through a list of files and prints each name with its contents.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Accessing Files Inside Templates; The Helm Authors, Accessing Files Inside Templates (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Accessing Files Inside Templates; The Helm Authors, Accessing Files Inside Templates (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors.

Cite this

Permanent ID: iil:note:p9ht2wp0

iinventedlight. 2026. "Helm templates: accessing files inside templates." iinventedlight Library, iil:note:p9ht2wp0, version of 2026-11-24. https://iinventedlight.com/library/notes/helm-accessing-files/. License: CC-BY-4.0.

@misc{iil_note_p9ht2wp0,
  author = {{iinventedlight}},
  title = {{Helm templates: accessing files inside templates}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-24},
  url = {https://iinventedlight.com/library/notes/helm-accessing-files/},
  note = {Permanent ID iil:note:p9ht2wp0. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/helm-accessing-files.md.