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) UpdateVersion ¶
func (p *DefaultProvider) UpdateVersion(ctx context.Context) error
func (*DefaultProvider) UpdateVersionWithValidation ¶
func (p *DefaultProvider) UpdateVersionWithValidation(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.