version

package
v1.6.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 24

Documentation

Overview

Package version keeps track of the Kubernetes version the client is connected to

Index

Constants

This section is empty.

Variables

View Source
var (

	// MinimalVersionConstraint is the minimal version required to run
	// Cilium
	MinimalVersionConstraint = versioncheck.MustCompile(">= 1.8.0")
)

Functions

func Force

func Force(version string) error

Force forces the use of a specific version

func Update

func Update(client kubernetes.Interface) error

Update retrieves the version of the Kubernetes apiserver and derives the capabilities. This function must be called after connectivity to the apiserver has been established.

func Version

func Version() *go_version.Version

Version returns the version of the Kubernetes apiserver

Types

type ServerCapabilities

type ServerCapabilities struct {
	// Patch is the ability to use PATCH to modify a resource
	Patch bool

	// UpdateStatus is the ability to update the status separately as a
	// sub-resource
	UpdateStatus bool

	// MinimalVersionMet is true when the minimal version of Kubernetes
	// required to run Cilium has been met
	MinimalVersionMet bool
}

ServerCapabilities is a list of server capabilities derived based on version

func Capabilities

func Capabilities() ServerCapabilities

Capabilities returns the capabilities of the Kubernetes apiserver

Jump to

Keyboard shortcuts

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