Documentation
¶
Overview ¶
Package imageoverride is a leaf package (no render/operator dependencies) that holds the image override table. The render package imports it to resolve a component's image without depending on pkg/extensions, which would cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Overrides ¶
type Overrides struct {
// contains filtered or unexported fields
}
Overrides maps a component (keyed by variant) to the image it should resolve to, letting a variant swap a component's image without the render package branching on variant. The render component holds one and resolves through it. Registry, image path, and FIPS handling are applied downstream in the render package, so an override only picks which component.
func (*Overrides) Register ¶
func (o *Overrides) Register(variant operatorv1.ProductVariant, key string, image components.Component)
Register stores image under key for the given variant. The key is the render component's image identifier (e.g. "node").
func (*Overrides) Resolve ¶
func (o *Overrides) Resolve(key string, def components.Component, in *operatorv1.InstallationSpec) components.Component
Resolve returns the override registered for key under the installation's variant, otherwise def. It is safe to call on a nil *Overrides (the core operator hands render no overrides), which always returns def.