version

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Karpenter's supported 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.25"
	MaxK8sVersion = "1.31"
)

Variables

This section is empty.

Functions

func SupportedK8sVersions added in v1.0.0

func SupportedK8sVersions() []string

SupportedK8sVersions returns a slice of version strings in format "major.minor" for all versions of k8s supported by this version of Karpenter. Note: Assumes k8s only has a single major version (1.x)

Types

type DefaultProvider added in v0.36.0

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

DefaultProvider get the APIServer version. This will be initialized at start up 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 added in v0.36.0

func NewDefaultProvider(kubernetesInterface kubernetes.Interface, cache *cache.Cache) *DefaultProvider

func (*DefaultProvider) Get added in v0.36.0

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

type Provider

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

Jump to

Keyboard shortcuts

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