helm_oci_digest rules.

Rules

Providers

helm_oci_digest

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

helm_oci_digest(name, chart)

Compute the OCI manifest digest for a Helm chart at build time.

This rule constructs the OCI manifest that helm push (Helm v4) would create and computes its sha256 digest. The .tgz file's mtime is used for the creation annotation, formatted in UTC to match the push side.

The digest file contains a single line: sha256:<hex>.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
chartA helm_chart target providing HelmPackageInfo.Labelrequired

HelmOCIDigestInfo

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

HelmOCIDigestInfo(digest)

OCI manifest digest for a Helm chart, computed at build time.

FIELDS

NameDescription
digestFile: Text file containing the OCI manifest digest (sha256:...)