manifest

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package manifest defines the schema for the build-time resolved mirror manifest that is embedded in the flightctl-mirror-images binary.

The manifest is produced once at build time by "make generate-mirror-embed" and captures the fully-resolved image and RPM lists for every supported variant. The runtime tool reads it without any YAML parsing; --tag-override and the MIRROR_MANIFEST env-var override remain as escape hatches.

Index

Constants

View Source
const CurrentSchemaVersion = "1"

CurrentSchemaVersion identifies the manifest format. Increment when the schema changes in a backward-incompatible way.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	// SchemaVersion allows the runtime to detect format mismatches.
	SchemaVersion string `json:"schema_version"`

	// AppVersion is the chart appVersion (e.g. "1.2.0") read from Chart.yaml
	// at build time.  Used as the default image tag when --tag-override is not set.
	AppVersion string `json:"app_version"`

	// Variants maps each supported variant name to its fully-resolved data.
	Variants map[string]Variant `json:"variants"`
}

Build is the top-level manifest structure embedded in the binary.

type Image

type Image struct {
	// Ref is the fully-qualified, registry-normalized image reference without a
	// tag (e.g. "registry.redhat.io/rhem/flightctl-api-rhel9").
	Ref string `json:"ref"`

	// Tag is the fixed image tag.  When non-empty it is always used as-is,
	// even if --tag-override is set (these are third-party images with pinned
	// versions).  When empty the effective version tag (AppVersion or
	// --tag-override) is applied at runtime.
	Tag string `json:"tag"`
}

Image is one container image in the pre-resolved manifest.

type Variant

type Variant struct {
	// Images is the deduplicated, sorted list of images for this variant.
	Images []Image `json:"images"`

	// RPMs is the sorted list of runtime RPM package names parsed from flightctl.spec.
	RPMs []string `json:"rpms"`
}

Variant holds the pre-resolved image and RPM data for one chart variant.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL