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 ¶
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
Click to show internal directories.
Click to hide internal directories.