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, registry_url, registry_url_file)
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 creation annotation comes from
the chart's own org.opencontainers.image.created annotation, resolved by
the stamping pass, and is formatted in UTC to match the push side.
The digest file contains a single line: sha256:<hex>.
The manifest and config blobs are also emitted, so a pusher that uploads
them itself can PUT the exact bytes this digest was computed over. The
manifest annotations and the tag are emitted for a pusher that builds the
manifest itself. With registry_url or registry_url_file, so is the
repository helm push would push to. None of these are in the default
outputs; read them off HelmOCIDigestInfo or its output groups.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| chart | A helm_chart target providing HelmPackageInfo. | Label | required | |
| registry_url | The registry URL given to helm push, for example oci://registry.example.com/charts. Sets HelmOCIDigestInfo.repository. Only oci:// URLs are accepted; any other scheme fails the target, digest included. Mutually exclusive with registry_url_file. | String | optional | "" |
| registry_url_file | A file containing the registry URL given to helm push. Sets HelmOCIDigestInfo.repository. As with registry_url, only oci:// URLs are accepted. Mutually exclusive with registry_url. | Label | optional | None |
HelmOCIDigestInfo
load("@rules_helm//helm:helm_oci_digest.bzl", "HelmOCIDigestInfo")
HelmOCIDigestInfo(annotations, config, digest, manifest, repository, tag)
OCI manifest digest for a Helm chart, computed at build time.
FIELDS