clusterversion

package
v1.20.0-rc.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterVersion

type ClusterVersion struct {
	Major  int
	Minor  int
	Patch  int
	Suffix string
}

ClusterVersion represents the parts of a Kubernetes cluster version.

func ParseClusterVersion

func ParseClusterVersion(version string) (ClusterVersion, error)

ParseClusterVersion parses the string "gitVersion" of a Kubernetes cluster.

func (ClusterVersion) GKESuffix

func (cv ClusterVersion) GKESuffix() (int, error)

GKESuffix returns the GKE patch version integer from the -gke suffix

func (ClusterVersion) IsAtLeast

func (cv ClusterVersion) IsAtLeast(other ClusterVersion) bool

IsAtLeast returns whether the ClusterVersion is at least the provided version.

func (ClusterVersion) String

func (cv ClusterVersion) String() string

String returns the canonical string representation of a ClusterVersion.

Jump to

Keyboard shortcuts

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