Skip to content

Getting Started

llms.txt lists every page for an agent
Optional: hand this page to your coding agentThe steps work by hand too.
Show the whole prompt
Read https://intentius.io/chant/lexicons/helm/getting-started/.
In a new directory, install the helm and k8s lexicons, run `npx chant init --lexicon helm`, and run `npx chant build`.
Run `helm lint` and `helm template` on the chart it wrote, and show me the output and the chart's files.
Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.

The Helm lexicon builds parameterized Helm charts from TypeScript. Where static manifest generators (like cdk8s’s Helm output) emit fixed YAML, it generates:

  • {{ .Values.x }} template directives
  • values.yaml with typed defaults
  • values.schema.json for validation
  • Conditional resources via {{- if }}
  • Standard _helpers.tpl
  • Helm hooks and tests
Terminal window
npm install --save-dev @intentius/chant @intentius/chant-lexicon-helm @intentius/chant-lexicon-k8s
Terminal window
chant init --lexicon helm

This creates a scaffold with a Chart, Values, Deployment, and Service. Run chant build to produce a complete Helm chart directory.

// Resources
import { Chart, Values, HelmNotes } from "@intentius/chant-lexicon-helm";
// Intrinsics (produce Go template expressions)
import { values, Release, include, printf, toYaml, If } from "@intentius/chant-lexicon-helm";
// K8s resources
import { Deployment, Service, Ingress } from "@intentius/chant-lexicon-k8s";

chant