k8sversion

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidKubeVersion

func IsInvalidKubeVersion(err error) bool

IsInvalidKubeVersion asserts invalidKubeVersionError.

func Latest

func Latest(versions []string) (string, error)

Latest returns the latest version given with the Kubernetes API versions. Given [v1alpha1, v1, v2alpha3] then v2alpha3 is returned as it is the latest version.

func Less

func Less(a string, b string) (bool, error)

Less returns true if a is less/older that b, where a and b are Kubernetes API Versions. Given v1 and v2alpha3 then v1 is returned since it is the semantically older version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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