Documentation
¶
Index ¶
Constants ¶
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.26" MaxK8sVersion = "1.35" )
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)
func SupportsDefaultBind ¶ added in v1.8.0
SupportsDefaultBind checks if the Bottlerocket AMI version supports default bind (>= 1.46.0) This function is used to determine whether to use the new default bind command or the legacy command with explicit directory paths for ephemeral storage binding.
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, eksapi sdk.EKSAPI) *DefaultProvider
func (*DefaultProvider) Get ¶ added in v0.36.0
func (p *DefaultProvider) Get(ctx context.Context) string
func (*DefaultProvider) UpdateVersion ¶ added in v1.1.0
func (p *DefaultProvider) UpdateVersion(ctx context.Context) error
func (*DefaultProvider) UpdateVersionWithValidation ¶ added in v1.1.2
func (p *DefaultProvider) UpdateVersionWithValidation(ctx context.Context) error