versions

package
v2.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpectedSemverVersion = errors.New(`expected "<image>:<tag>" format`)

ErrExpectedSemverVersion indicates that the provided image string does not conform to the expected "<image>:<tag>" format.

Functions

func FromImage

func FromImage(image string) (semver.Version, error)

FromImage takes a container image in the format "<image>:<version>" and returns a semver instance of the version. It supports semver with the extension of enterprise segment, being an additional forth segment on top the standard 3 segment supported by semver. This also supports flavour suffixes which can be supplied after "-" character.

func IsDataPlaneImageVersionSupported

func IsDataPlaneImageVersionSupported(image string) (bool, error)

IsDataPlaneImageVersionSupported is a helper intended to validate the DataPlane image and indicate if the operator can support it.

Presently only a minimum version is required, there are no limits on the maximum. This may change in the future.

The image is expected to follow the format "<image>:<tag>" and only supports a provided "<tag>" if it is a semver compatible version.

Types

type VersionValidationOption

type VersionValidationOption func(version string) (bool, error)

VersionValidationOption is the function signature to be used as option to validate ControlPlane and DataPlane versions

Jump to

Keyboard shortcuts

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