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

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
depsOther helm packages this package depends on.List of labelsoptional[]
chartThe Chart.yaml file of the helm chartLabeloptionalNone
chart_jsonThe Chart.yaml file of the helm chart as a json objectStringoptional""
crdsAll Custom Resource Definitions associated with the current helm chart. E.g., the ./crds directoryList of labelsoptional[]
filesFiles accessed in templates via the .Files apiList of labelsoptional[]
imagesA list of oci_push or image_push targets.List of labelsoptional[]
optsAdditional arguments to pass to helm package commands.List of stringsoptional[]
schemaThe values.schema.json file for the current package.LabeloptionalNone
stampWhether 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.
Integeroptional-1
substitutionsA dictionary of substitutions to apply to the values.yaml file.Dictionary: String -> Stringoptional{}
templatesAll templates associated with the current helm chart. E.g., the ./templates directoryList of labelsoptional[]
valuesThe values.yaml file for the current package.LabeloptionalNone
values_jsonThe values.yaml file for the current package as a json object.Stringoptional""