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"]
}
}| Field | Type | Default | Description |
|---|---|---|---|
kubeconfig | string | - | Required. A path, or a "${...}" expression that reads one from needs, such as "${needs.cluster.out.kubeconfig}". |
context | string | - | Selects the kubeconfig context. Defaults to the kubeconfig’s current-context. |
release | string | - | Required. The Helm release name. |
namespace | string | "default" | The target namespace. |
create_namespace | bool | true | Creates namespace if it does not exist. |
chart | string | - | Required. A local path (relative to the project directory unless absolute), an oci:// reference, or a chart name inside repo. |
repo | string | - | A chart repository URL. chart then names a chart inside it. |
version | string | - | Pins a chart version. |
values_files | [...string] | - | Passed as repeated -f flags, in order. Relative to the project directory unless absolute. |
post_renderer | string | - | A command that helm pipes rendered manifests through. |
post_renderer_args | [...string] | - | Extra arguments for post_renderer. |
wait | string | "5m" | How long to wait for the release to become ready, such as "5m". An empty string does not wait. |
atomic | bool | true | Rolls the release back automatically on a failed upgrade. |
keep | bool | - | 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
keepistrue.