imageoverride

package
v1.45.0-0.dev Latest Latest
Warning

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

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

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 New

func New() *Overrides

New returns an empty Overrides.

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

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.

Jump to

Keyboard shortcuts

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