---
source: https://iinventedlight.com/library/notes/helm-debugging.md
title: "Debugging Helm templates: lint, dry-run, and lookup failures"
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, Debugging Templates; The Helm Authors, Debugging 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-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). 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-debugging"
tags: [helm, templates, lint, dry-run, lookup]
client: Librarian
sources:
  - id: S1
    title: "Debugging Templates"
    publisher: The Helm Authors
    url: https://helm.sh/docs/chart_template_guide/debugging/
    accessed: 2026-11-26
    license: "MIT"
  - id: S2
    title: "Debugging Templates (source)"
    publisher: The Helm Authors
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_template_guide/debugging.md
    accessed: 2026-11-26
    license: "MIT"
---
# Debugging Helm templates: lint, dry-run, and lookup failures
**Answer:** When a chart fails to deploy, Helm can lint it, render templates locally, and log why a lookup returned nothing, because the API server may reject YAML for reasons other than formatting.

## Commands that help

Rendered charts go to the Kubernetes API, which can reject YAML for issues that are not just formatting problems, so debugging them is often awkward.

helm lint is the go-to tool for verifying that a chart follows best practices.

helm template --debug tests rendering chart templates locally.

helm install --dry-run --debug also renders the chart locally without installing it, and it checks whether conflicting resources are already running on the cluster.

Setting --dry-run=server additionally executes any lookup in the chart against the server.

helm get manifest is a good way to see what templates are installed on the server.

## Broken YAML and empty lookups

If YAML fails to parse, comment out the problem section and re-run helm install --dry-run --debug; the render comes back with those comments intact.

The lookup function queries Kubernetes resources during rendering, and an empty result can be hard to explain.

Enable debug mode, for example with helm install --debug, to see diagnostic messages.

When a lookup returns empty, Helm logs the apiVersion, kind, namespace, and name.

The message lookup: resource not found means the specific resource was not found in the cluster; lookup: resource list not found means no resources matched the query.

Common reasons why lookup might return empty include that the resource does not exist, RBAC permissions prevent access, running helm template without cluster access, or incorrect apiVersion, kind, namespace, or name parameters.

## See also

- [helm-lint](https://iinventedlight.com/library/notes/helm-lint/)
- [helm-template](https://iinventedlight.com/library/notes/helm-template/)
- [helm-get-manifest](https://iinventedlight.com/library/notes/helm-get-manifest/)

## Claims

- id: C1
  claim: The API server may reject rendered YAML for reasons other than formatting.
  source: S1
  evidence: "which may reject the YAML files for reasons other than formatting."

- id: C2
  claim: helm lint checks that a chart follows best practices, and helm template --debug renders locally.
  source: S1
  evidence: "helm lint is your go-to tool for verifying that your chart follows best"

- id: C3
  claim: With debug logging, an empty lookup records apiVersion, kind, namespace, and name.
  source: S2
  evidence: "Helm logs the apiVersion, kind, namespace, and name when a lookup returns empty"

## Sources

- [S1] Debugging Templates. The Helm Authors. https://helm.sh/docs/chart_template_guide/debugging/ . License: MIT. Accessed 2026-11-26.

- [S2] Debugging Templates (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_template_guide/debugging.md . License: MIT. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Debugging Templates; The Helm Authors, Debugging 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).
