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 ¶
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.
Click to show internal directories.
Click to hide internal directories.