version

package
v0.0.0-...-6815946 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 23 modules, 26 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"

	// DefaultKubernetesMinVersion is the default minimum Kubernetes version
	// Knative is built and tested against. The value has a leading "v"
	// (e.g. "v1.35.0").
	DefaultKubernetesMinVersion = "v1.35.0"
)

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())`.

func KubernetesMinimumVersion

func KubernetesMinimumVersion() string

KubernetesMinimumVersion returns the minimum Kubernetes version required by Knative. It returns the value of the KUBERNETES_MIN_VERSION environment variable if set, otherwise DefaultKubernetesMinVersion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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