imageversions

package
v2.10.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ImageOverrideEnvPrefix = "RELATED_IMAGE_"

Variables

This section is empty.

Functions

func SetFromExternalCluster added in v2.8.0

func SetFromExternalCluster(ctx context.Context, client *lclient.Client, configs Configs) error

SetFromExternalCluster sets the LINSTOR Satellite image tag to the version of the LINSTOR Controller.

The Configs will be updated so that the first entry containing a LINSTOR Satellite image is updated. Returns an error is the LINSTOR Controller could not be reached, or no LINSTOR Satellite image was found.

Types

type ComponentConfig

type ComponentConfig struct {
	Tag    string    `yaml:"tag"`
	Match  []OsMatch `yaml:"match"`
	Image  string    `yaml:"image"`
	Digest string    `yaml:"digest,omitempty"`
}

type Config

type Config struct {
	Base       string                     `yaml:"base"`
	Components map[string]ComponentConfig `yaml:"components"`
}

Config represents a default image mapping used by the operator.

func (*Config) GetVersions

func (f *Config) GetVersions(base string, osImage string) ([]kusttypes.Image, bool)

type Configs added in v2.2.0

type Configs []*Config

Configs is a list of Config, where later

func FromConfigMap added in v2.1.0

func FromConfigMap(ctx context.Context, client client.Client, name types.NamespacedName) (Configs, error)

func (Configs) GetVersions added in v2.2.0

func (c Configs) GetVersions(base string, osImage string) ([]kusttypes.Image, bool)

type OsMatch

type OsMatch struct {
	OsImage     string `yaml:"osImage"`
	Image       string `yaml:"image"`
	Precompiled bool   `yaml:"precompiled"`
	Digest      string `yaml:"digest,omitempty"`
}

Jump to

Keyboard shortcuts

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