helm_chart rule.

Functions

helm_chart

load("@rules_helm//helm:helm_chart.bzl", "helm_chart")

helm_chart(*, name, chart, chart_json, crds, values, values_json, substitutions, templates, schema,
           files, images, deps, install_name, registry_url, registry_url_file, login_url, push_cmd,
           helm_opts, install_opts, package_opts, push_opts, upgrade_opts, uninstall_opts, data,
           stamp, **kwargs)

Rules for producing a helm package and some convenience targets.

targetrulecondition
{name}helm_packageNone
{name}.push_imageshelm_push_imagesNone
{name}.oci_digesthelm_oci_digestNone
{name}.push_registryhelm_push (include_images = False)registry_url or registry_url_file is defined.
{name}.pushhelm_push (include_images = True)registry_url or registry_url_file is defined.
{name}.installhelm_installNone
{name}.uninstallhelm_uninstallNone
{name}.upgradehelm_upgradeNone

PARAMETERS

NameDescriptionDefault Value
nameThe name of the helm_package target.none
chartThe path to the chart directory. Defaults to Chart.yaml.None
chart_jsonThe json encoded contents of Chart.yaml.None
crdsA list of crd files to include in the package.None
valuesThe path to the values file. Defaults to values.yaml.None
values_jsonThe json encoded contents of values.yaml.None
substitutionsA dictionary of substitutions to apply to values.yaml.{}
templatesA list of template files to include in the package.None
schemaA JSON Schema file for values. Defaults to values.schema.json.None
filesFiles accessed in templates via the .Files api.[]
imagesA list of oci_push or image_push targets[]
depsA list of helm package dependencies.None
install_nameThe helm install name to use. name will be used if unset.None
registry_urlThe registry url for the helm chart. {name}.push_registry is only defined when a value is passed here. Mutually exclusive with registry_url_file.None
registry_url_fileA file containing the registry url for the helm chart. {name}.push_registry is only defined when a value is passed here. Mutually exclusive with registry_url.None
login_urlThe registry url to log into for publishing helm charts.None
push_cmdAn alternative command to push for publishing helm charts.None
helm_optsAdditional options to pass to helm.[]
install_optsAdditional options to pass to helm install.[]
package_optsAdditional options to pass to helm package.[]
push_optsAdditional options to pass to helm push.[]
upgrade_optsAdditional options to pass to helm upgrade.[]
uninstall_optsAdditional options to pass to helm uninstall.[]
dataAdditional runtime data to pass to the helm install, upgrade, and uninstall targets.[]
stampWhether to encode build information into the helm chart.None
kwargsAdditional keyword arguments for helm_package.none