version

package
v0.0.0-...-8a05c22 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMinimumVersion

func CheckMinimumVersion(versioner ServerVersioner) error

CheckMinimumVersion checks if the currently installed version of Kubernetes is compatible with the minimum version required. Returns an error if its not.

A Kubernetes discovery client can be passed in as the versioner like `CheckMinimumVersion(kubeClient.Discovery())`.

Types

type ServerVersioner

type ServerVersioner interface {
	ServerVersion() (*version.Info, error)
}

ServerVersioner is an interface to mock the `ServerVersion` method of the Kubernetes client's Discovery interface. In an application `kubeClient.Discovery()` can be used to suffice this interface.

Jump to

Keyboard shortcuts

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