---
source: https://iinventedlight.com/library/notes/helm-accessing-files.md
title: "Helm templates: accessing files inside templates"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (The Helm Authors); MIT (The Helm Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: helm-accessing-files"
tags: [helm, templates, Files, charts, kubernetes]
client: Librarian
sources:
  - id: S1
    title: "Accessing Files Inside Templates"
    publisher: The Helm Authors
    url: https://helm.sh/docs/chart_template_guide/accessing_files/
    accessed: 2026-11-24
    license: "MIT"
  - id: S2
    title: "Accessing Files Inside Templates (source)"
    publisher: The Helm Authors
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_template_guide/accessing_files.md
    accessed: 2026-11-24
    license: "MIT"
---
# 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

- [helm-named-templates](https://iinventedlight.com/library/notes/helm-named-templates/)
- [helm-values-files](https://iinventedlight.com/library/notes/helm-values-files/)
- [helm-package](https://iinventedlight.com/library/notes/helm-package/)

## Claims

- id: C1
  claim: Helm provides access to files through the Files object.
  source: S1
  evidence: "Helm provides access to files through the .Files object."

- id: C2
  claim: Charts must be smaller than 1M because of the storage limitations of Kubernetes objects.
  source: S1
  evidence: "Charts must be smaller than 1M because of the storage limitations of Kubernetes objects."

- id: C3
  claim: Files in the templates directory cannot be accessed.
  source: S1
  evidence: "Files in templates/ cannot be accessed."

- id: C4
  claim: Those helpers use the same names as in the Go package, but with a lowercase first letter.
  source: S2
  evidence: "accessible with the same names as in the Go package"

## Sources

- [S1] Accessing Files Inside Templates. The Helm Authors. https://helm.sh/docs/chart_template_guide/accessing_files/ . License: MIT. Accessed 2026-11-24.

- [S2] Accessing Files Inside Templates (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_template_guide/accessing_files.md . License: MIT. Accessed 2026-11-24.

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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
