Documentation
¶
Index ¶
- Constants
- func ControllerMajor(controllerName string) (int, error)
- func ControllerMinorForFluxMinor(controllerName string, flux2Minor int) (int, error)
- func FluxMinorForControllerMinor(controllerName string, controllerMinor int) (int, error)
- func ParseVersion(v string) (*semver.Version, error)
- func Sort(c *semver.Constraints, vs []string) []string
Constants ¶
const BaselineFlux2Minor = 7
BaselineFlux2Minor is the baseline minor version of the flux2 distribution used for computing the minor versions of the controllers in that version. This is Flux v2.7 at the moment. When a new controller is added to the distribution, this baseline MUST be updated, as our release workflows depend on it. Flux v2.7 is, at the moment, the latest version where a controller was added to the distribution: source-watcher.
Variables ¶
This section is empty.
Functions ¶
func ControllerMajor ¶ added in v0.13.0
ControllerMajor returns the major version for the given controller name.
func ControllerMinorForFluxMinor ¶ added in v0.13.0
ControllerMinorForFluxMinor computes the controller minor version for the given flux2 distribution minor version. This function also supports controllerName="flux2".
func FluxMinorForControllerMinor ¶ added in v0.13.0
FluxMinorForControllerMinor computes the flux2 distribution minor version for the given controller minor version. This function also supports controllerName="flux2" and controllerMinor=<any minor version of flux2>.
func ParseVersion ¶
ParseVersion parses a version string and returns a semver.Version object. The validation is looser than the official semver spec, allowing for a 'v' prefix and 0-prefixed numbers in the major, minor, and patch segments (e.g., v2025.02.03-rc.1 is considered valid).
Types ¶
This section is empty.