karpenter

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const KarpenterTaintConfigMapName = "set-karpenter-taint"

KarpenterTaintConfigMapName is the name of the configmap containing the karpenter taint config

View Source
const (
	// ManagedByKarpenterLabel is a label set on the userData secrets as being managed by Karpenter Operator
	ManagedByKarpenterLabel = "hypershift.openshift.io/managed-by-karpenter"
)

Variables

View Source
var ErrHCPNotFound = errors.New("hostedcontrolplane not found")

ErrHCPNotFound is returned when no HostedControlPlane is found in the namespace.

Functions

func GetHCP added in v0.1.74

func GetHCP(ctx context.Context, c client.Client, namespace string) (*hyperv1.HostedControlPlane, error)

GetHCP retrieves the HostedControlPlane from the given namespace. Returns ErrHCPNotFound if no HCP exists in the namespace.

func IsKarpenterEnabled

func IsKarpenterEnabled(autoNode *hyperv1.AutoNode) bool

IsKarpenterEnabled checks if Karpenter is enabled for the given AutoNode configuration Note that we may eventually support other platforms, but for now we only support AWS.

func KarpenterNodePoolName added in v0.1.74

func KarpenterNodePoolName(oec2nc *hyperkarpenterv1.OpenshiftEC2NodeClass) string

KarpenterNodePoolName returns the name of the Karpenter NodePool for a given OpenshiftEC2NodeClass

Types

This section is empty.

Jump to

Keyboard shortcuts

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