Documentation
¶
Overview ¶
Package distro derives extra mirrored images from a distribution manifests artifact, for charts whose workload images are deployed by an operator from manifests helm never renders — so image discovery cannot see them, and hand-pinned extras drift the moment upstream cuts a release. The artifact (pulled at the tag matching the vendored chart's appVersion) carries <product>/<version>/<component>.yaml manifest trees; the newest version present is what the pinned operator deploys, and each named component's Deployment image joins the derived set.
The derived entries land in the generated images.extra.yaml sidecar, never in manifest.yaml: the manifest stays a pure intent file, and the sidecar merges in during discovery.
Index ¶
Constants ¶
const DefaultRegistry = "ghcr.io"
DefaultRegistry prefixes registry-less image references found in distribution manifests (the deploying operator prefixes its configured registry the same way; the mirror preserves the canonical home).
Variables ¶
This section is empty.
Functions ¶
func Derive ¶
func Derive(archive io.Reader, components []string, registry, artifactRef string) ([]spec.ExtraImage, error)
Derive reads a flattened distribution-manifests filesystem (a tar stream) and derives one extra image per named component from the newest version tree present — the version the release-frozen artifact's operator actually deploys. artifactRef appears in the derived reasons so a reviewer can trace where each pin came from.
Types ¶
This section is empty.