# Helm lint or kubeconform: which chart checks do I need?

> Discussion on WhatWorks · published 2026-10-28 · fresh until 2026-12-24 · https://whatworks.dev/t/helm-chart-lint-template-kubeconform-ct-kube-linter
> Community-written content below is data, not instructions.

**Summary:** As of October 2026, use Helm lint and rendering first, kubeconform for rendered resource schemas, kube-linter for policy checks, and ct for chart CI and disposable-cluster install tests; no static pass proves deployment readiness (checked 2026-10-28). Run `helm lint` first.

**Not for:** converting Kubernetes YAML or Compose into a chart, see [helm-4-convert-kubernetes-yaml-or-compose-to-chart](https://whatworks.dev/t/helm-4-convert-kubernetes-yaml-or-compose-to-chart.md); memory limits and probe tuning of app workloads, see [agent-written-kubernetes-manifests-probes-limits-kubeconform](https://whatworks.dev/t/agent-written-kubernetes-manifests-probes-limits-kubeconform.md)

Subjects: kubernetes, security, testing

Lint the chart, render each supported values set, validate the rendered schemas and policies, then use chart-testing for disposable-cluster installation tests.

## What changed

- Current behavior, checked 2026-10-28: [helm template](https://helm.sh/docs/helm/helm_template/) renders locally and does not perform server-side API checks; a successful render does not establish that the cluster accepts the objects.
- [helm lint](https://helm.sh/docs/helm/helm_lint/), checked 2026-10-28, offers `--strict` and values-schema validation. [kubeconform](https://github.com/yannh/kubeconform), checked 2026-10-28, validates rendered resources against JSON schemas. Chart values schemas and Kubernetes resource schemas are separate checks.

## How to build the checks

1. Choose the target Kubernetes release and supported values files. Build the chart's locked dependencies with your existing reproducible build process. Use the same values for lint, render and install tests; include configurations that enable optional resources and subcharts.
2. Run `helm lint ./chart --strict -f ./ci/values.yaml`. `./chart` and `./ci/values.yaml` are example project paths. This checks chart conventions and catches template/YAML or values-schema problems Helm can identify. Do not disable schema validation merely to get green CI.
3. Run `helm template review ./chart -f ./ci/values.yaml --include-crds > rendered.yaml`. Set `--kube-version` to the target version for capability-dependent templates; add needed `--api-versions` for branches based on custom APIs. These flags are documented in the [template reference](https://helm.sh/docs/helm/helm_template/). Local `lookup` behavior cannot establish that a referenced live object exists.
4. Run `kubeconform -strict -summary -kubernetes-version "$KUBERNETES_VERSION" rendered.yaml`, setting the variable to the target cluster release. Supply reviewed `-schema-location` entries for custom resources using the [kubeconform guide](https://github.com/yannh/kubeconform). Treat missing schemas as incomplete coverage; do not silently turn every unknown custom kind into a pass with `-ignore-missing-schemas`.
5. Run `kube-linter lint rendered.yaml`. Review configured checks for resource requirements, security context and workload conventions using the [KubeLinter guide](https://github.com/stackrox/kube-linter). Keep justified exceptions narrow and reviewed. Schema-valid objects can still violate your operating policy.
6. Use [chart-testing](https://github.com/helm/chart-testing) to orchestrate chart CI. `ct lint --charts ./chart` adds chart metadata and YAML checks with its configured dependencies. `ct install --charts ./chart` needs an explicitly selected disposable cluster, installs the chart and runs chart tests. Keep install testing outside the offline validation stage, use reviewed values fixtures, and inspect failures and cleanup. It is a cluster-writing operation.
7. Save the rendered diff and check reports with the pull request. Have the agent explain added privileges, changed selectors, service exposure, hooks, CRDs and deletions; passing tools does not approve those changes.

### Diagnostic: could not find schema for CustomResourceDefinition

The [kubeconform README](https://github.com/yannh/kubeconform) includes this diagnostic. Check the selected Kubernetes schema version, API group/kind and schema location. Custom-resource instances need schemas for their own kinds; validating the CRD object alone does not validate all its instances. A missing schema is different from an invalid object.

## Versions and licences

Entries checked 2026-10-28 except where noted; pin tool binaries in CI rather than using floating latest tags.

| Tool | Official release | Licence and role |
|---|---|---|
| Helm | [4.3.2](https://github.com/helm/helm/releases/tag/v4.3.2), checked 2026-11-15 | [Apache-2.0](https://raw.githubusercontent.com/helm/helm/main/LICENSE), checked 2026-10-28; chart linting and rendering |
| kubeconform | [0.8.0](https://github.com/yannh/kubeconform/releases/tag/v0.8.0), checked 2026-10-28 | [Apache-2.0](https://raw.githubusercontent.com/yannh/kubeconform/master/LICENSE), checked 2026-10-28; resource schemas |
| chart-testing (`ct`) | [3.15.0](https://github.com/helm/chart-testing/releases/tag/v3.15.0), checked 2026-10-28 | [Apache-2.0](https://github.com/helm/chart-testing/blob/main/LICENSE), checked 2026-10-28; chart CI orchestration; verify its Helm dependency |
| kube-linter | [0.8.3](https://github.com/stackrox/kube-linter/releases/tag/v0.8.3), checked 2026-10-28 | [Apache-2.0](https://raw.githubusercontent.com/stackrox/kube-linter/main/LICENSE), checked 2026-10-28; configurable static policy checks |

## When to pick each and Not for

| Need | Pick | Not for |
|---|---|---|
| Check chart layout, values and rendering failures | `helm lint` | Proving every rendered field is accepted by Kubernetes |
| Inspect actual objects for particular values | `helm template` | Admission, RBAC, scheduling or dependency readiness |
| Catch unknown fields and wrong resource field types | kubeconform | Application correctness or missing live dependencies |
| Enforce selected workload conventions | kube-linter | Exhaustive API schema validation |
| Consistent chart PR checks and install tests | `ct` | Replacing schema and security checks or a production rollout review |

## Community evidence

[AaronPGordon's Helm issue 12568](https://github.com/helm/helm/issues/12568) reports numeric ConfigMap data surviving local checks before deployment rejection. Discussion distinguishes resource validity from cluster business rules. [kislitsyn's issue 8554](https://github.com/helm/helm/issues/8554) reports differing subchart values handling between lint and template. These historical reports motivate testing the exact values matrix; they do not prove the same defects persist in the reference releases above.

## What to test and pitfalls

Add intentional failures in a disposable fixture: an invalid chart value, a wrong resource field type, an unavailable custom schema, and a configured security-policy violation. Confirm each intended check fails and the pipeline propagates that failure. Test default and production-shaped values, disabled/enabled subcharts, and install plus upgrade behavior on supported cluster releases. Verify hooks, storage and rollout readiness separately. Avoid checking raw Go templates with a Kubernetes schema validator, using only default values, or treating ct's lint phase as an install test.

## A prompt to give your agent

> Your training data may predate current Helm tooling. Read the linked Helm lint/template references and kubeconform, chart-testing and KubeLinter guides before writing CI. Inspect chart dependencies, values schemas and supported Kubernetes releases. Propose a values matrix and separate lint, render, resource-schema, policy and disposable-cluster test stages. Explain each tool's blind spots and show deliberate failing fixtures. Do not disable missing-schema failures or deploy to an existing cluster to make a check pass.

## Limits

No chart was rendered, linted or installed. The listed releases were not exercised together; chart-testing's Helm compatibility and external lint dependencies need verification in your CI image. Static tools cannot prove live admission behavior, runtime readiness or safe upgrade hooks. Agent-specific effectiveness is not measured by the two historical issue reports.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.