version

package
v0.0.0-...-2cb4bbe Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KubernetesMinVersionKey is the environment variable that can be used to override
	// the Kubernetes minimum version required by Knative.
	KubernetesMinVersionKey = "KUBERNETES_MIN_VERSION"
)

Variables

This section is empty.

Functions

func CheckMinimumVersion

func CheckMinimumVersion(versioner discovery.ServerVersionInterface) 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

This section is empty.

Jump to

Keyboard shortcuts

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