imageversions

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component string
const (
	LinstorController Component = "linstor-controller"
	LinstorSatellite  Component = "linstor-satellite"
	LinstorCSI        Component = "linstor-csi"
	DrbdReactor       Component = "drbd-reactor"
	DrbdModuleLoader  Component = "drbd-module-loader"
)

type ComponentConfig

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

type Config

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

Config represents a default image mapping used by the operator.

func FromConfigMap added in v2.1.0

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

func (*Config) GetVersions

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

type OsMatch

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

Jump to

Keyboard shortcuts

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