Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
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 ¶
VersionValidationOption is the function signature to be used as option to validate ControlPlane and DataPlane versions