builtin:helm#

Installs or upgrades a Helm release in a Kubernetes cluster, with the helm command on the host. See Deploying workloads.

app: {
    uses: "builtin:helm"
    needs: ["cluster"]
    with: {
        kubeconfig:   "${needs.cluster.out.kubeconfig}"
        context:      "${needs.cluster.out.context}"
        release:      "demo"
        chart:        "charts/demo"
        namespace:    "demo"
        values_files: ["values-prod.yaml"]
    }
}
FieldTypeDefaultDescription
kubeconfigstring-Required. A path, or a "${...}" expression that reads one from needs, such as "${needs.cluster.out.kubeconfig}".
contextstring-Selects the kubeconfig context. Defaults to the kubeconfig’s current-context.
releasestring-Required. The Helm release name.
namespacestring"default"The target namespace.
create_namespacebooltrueCreates namespace if it does not exist.
chartstring-Required. A local path (relative to the project directory unless absolute), an oci:// reference, or a chart name inside repo.
repostring-A chart repository URL. chart then names a chart inside it.
versionstring-Pins a chart version.
values_files[...string]-Passed as repeated -f flags, in order. Relative to the project directory unless absolute.
post_rendererstring-A command that helm pipes rendered manifests through.
post_renderer_args[...string]-Extra arguments for post_renderer.
waitstring"5m"How long to wait for the release to become ready, such as "5m". An empty string does not wait.
atomicbooltrueRolls the release back automatically on a failed upgrade.
keepbool-Leaves the release installed on teardown, instead of uninstalling it.

post_renderer is a program name found on PATH, or a path relative to the current directory. Helm 3 and Helm 4 accept different values. See the Helm documentation.

Behavior#

  • Runs helm upgrade --install, so running the step again is safe.
  • Uninstalls the release on teardown, unless keep is true.