version

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MinK8sVersion is Karpenter's supported minimum version of Kubernetes.
	// If a user runs a karpenter image on a k8s version outside the min and max,
	// one error message will be fired to notify.
	MinK8sVersion = "1.26"

	// MaxK8sVersion is Karpenter's supported maximum version of Kubernetes.
	MaxK8sVersion = "1.36"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProvider

type DefaultProvider struct {
	// contains filtered or unexported fields
}

DefaultProvider gets the APIServer version. This will be initialized at startup and allows karpenter to have an understanding of the cluster version for decision making. The version is cached to help reduce the amount of calls made to the API Server.

func NewDefaultProvider

func NewDefaultProvider(kubernetesInterface kubernetes.Interface) *DefaultProvider

func (*DefaultProvider) Get

func (p *DefaultProvider) Get(ctx context.Context) string

func (*DefaultProvider) UpdateVersion

func (p *DefaultProvider) UpdateVersion(ctx context.Context) error

func (*DefaultProvider) UpdateVersionWithValidation

func (p *DefaultProvider) UpdateVersionWithValidation(ctx context.Context) error

type Provider

type Provider interface {
	Get(ctx context.Context) string
}

Provider provides the Kubernetes version discovered from the API server.

Jump to

Keyboard shortcuts

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