cluster

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerVersion

type ServerVersion struct {
	Major, Minor int
}

ServerVersion captures k8s major.minor version in a parsed form

func TryGetServerVersion added in v1.4.4

func TryGetServerVersion(cdi discovery.CachedDiscoveryInterface) ServerVersion

TryGetServerVersion attempts to retrieve the server version from k8s. Returns the configured default version in case this fails.

func (ServerVersion) Compare

func (v ServerVersion) Compare(version ServerVersion) int

Compare returns -1/0/+1 iff v is less than / equal / greater than input version.

func (ServerVersion) String

func (v ServerVersion) String() string

Jump to

Keyboard shortcuts

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