Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidEKSKubernetesVersion is an error that is returned when the given EKS kubernetes version is invalid. ErrInvalidEKSKubernetesVersion = fmt.Errorf("invalid EKS kubernetes version") // ErrInvalidEKSKubernetesReleaseVersion is an error that is returned when the given EKS kubernetes release version is invalid. ErrInvalidEKSKubernetesReleaseVersion = fmt.Errorf("invalid EKS kubernetes release version") )
Functions ¶
func CompareEKSKubernetesVersions ¶
CompareEKSKubernetesVersions compares two EKS kubernetes versions and returns 0 if they are equal, -1 if version1 is less than version2, and 1 if version1 is greater than version2. It returns an error if the given versions are not in the expected format.
func GetEKSVersionFromReleaseVersion ¶
GetEKSVersionFromReleaseVersion returns the EKS kubernetes version from the given release version. It returns an error if the given version is not in the expected format.
For example, given "1.16.8-01012024", it returns "1.16"
func IncrementEKSMinorVersion ¶
IncrementVersionMajor increments the minor version of the given EKS kubernetes version and returns the new version. It returns an error if the given version is not in the expected format.
For example, given "1.16", it returns "1.17"
Types ¶
This section is empty.