helm_command rules.
Rules
helm_command
load("@rules_helm//helm:helm_command.bzl", "helm_command")
helm_command(name, data, command, helm_opts, install_name, opts, package, values)
Produce an executable that invokes helm with an arbitrary subcommand. Useful for wrapping helm plugins (e.g. helm-diff) without requiring a dedicated rule for each plugin.
Example:
load("@rules_helm//helm:defs.bzl", "helm_command")
helm_command(
name = "my_chart.diff",
command = ["diff", "upgrade"],
install_name = "my-chart",
package = ":my_chart",
)
Any helm plugin referenced by command must be registered in the active helm toolchain (see helm_plugin / helm_toolchain).
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| data | Additional data to pass to the helm invocation. | List of labels | optional | [] |
| command | Subcommand tokens placed between helm_opts and opts (e.g. ["diff", "upgrade"]). | List of strings | required | |
| helm_opts | Additional arguments to pass to helm before the subcommand. | List of strings | optional | [] |
| install_name | Release name appended as a positional after opts. Omitted when unset. | String | optional | "" |
| opts | Additional arguments to pass after the subcommand. | List of strings | optional | [] |
| package | Optional helm package. When set, its chart path is appended as the final positional argument. | Label | optional | None |
| values | Values files to pass to the subcommand via --values. | List of labels | optional | [] |