helm_package rule.
Rules
helm_package
load("@rules_helm//helm:helm_package.bzl", "helm_package")
helm_package(name, deps, chart, chart_json, crds, files, images, opts, schema, stamp, substitutions,
templates, values, values_json)
Rules for creating Helm chart packages.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| deps | Other helm packages this package depends on. | List of labels | optional | [] |
| chart | The Chart.yaml file of the helm chart | Label | optional | None |
| chart_json | The Chart.yaml file of the helm chart as a json object | String | optional | "" |
| crds | All Custom Resource Definitions associated with the current helm chart. E.g., the ./crds directory | List of labels | optional | [] |
| files | Files accessed in templates via the .Files api | List of labels | optional | [] |
| images | A list of oci_push or image_push targets. | List of labels | optional | [] |
| opts | Additional arguments to pass to helm package commands. | List of strings | optional | [] |
| schema | The values.schema.json file for the current package. | Label | optional | None |
| stamp | Whether to encode build information into the helm actions. Possible values: - stamp = 1: Always stamp the build information into the helm actions, even in --nostamp builds. This setting should be avoided, since it potentially kills remote caching for the target and any downstream actions that depend on it.- stamp = 0: Always replace build information by constant values. This gives good build result caching.- stamp = -1: Embedding of build information is controlled by the --[no]stamp flag.Stamped targets are not rebuilt unless their dependencies change. | Integer | optional | -1 |
| substitutions | A dictionary of substitutions to apply to the values.yaml file. | Dictionary: String -> String | optional | {} |
| templates | All templates associated with the current helm chart. E.g., the ./templates directory | List of labels | optional | [] |
| values | The values.yaml file for the current package. | Label | optional | None |
| values_json | The values.yaml file for the current package as a json object. | String | optional | "" |