version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// MinK8sVersion defines the max K8s version which has tested on ack
	// Currently the min k8s version of ack is 1.28.1-aliyun.1
	MinK8sVersion = "1.28.9"
	// MaxK8sVersion defines the max K8s version which has tested on ack
	// Currently the max k8s version of ack is 1.31.1-aliyun.1
	MaxK8sVersion = "1.31.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProvider

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 making decision. The version is cached to help reduce the amount of calls made to the API Server

func NewDefaultProvider

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

func (*DefaultProvider) Get

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