version

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// MinimalVersionConstraint is the minimal version that Cilium supports to
	// run kubernetes.
	MinimalVersionConstraint = "1.16.0"
)

Variables

This section is empty.

Functions

func Force

func Force(version string) error

Force forces the use of a specific version

func UpdateK8sServerVersion

func UpdateK8sServerVersion(client kubernetes.Interface) error

func Version

func Version() semver.Version

Version returns the version of the Kubernetes apiserver

Types

type ServerCapabilities

type ServerCapabilities struct {
	// MinimalVersionMet is true when the minimal version of Kubernetes
	// required to run Cilium has been met
	MinimalVersionMet bool

	// APIExtensionsV1CRD is set to true when the K8s server supports
	// apiextensions/v1 CRDs. TODO: Add link to docs
	//
	// This capability was introduced in K8s version 1.16, prior to which
	// apiextensions/v1beta1 CRDs were used exclusively.
	APIExtensionsV1CRD bool
}

ServerCapabilities is a list of server capabilities derived based on version, the Kubernetes discovery API, or probing of individual API endpoints.

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