Documentation
¶
Index ¶
- Constants
- func GetAllSingleValuedRequirementLabels(instanceType *cloudprovider.InstanceType) map[string]string
- func Hash(str string) string
- func ResolveNodePoolFromNodeClaim(ctx context.Context, kubeClient client.Client, nodeClaim *karpv1.NodeClaim) (*karpv1.NodePool, error)
- func ResolveReservedCPUMCore(instanceType string, cpuMCore int64) int64
- func ResolveReservedEphemeralStorage(bootDiskGiB, totalSSDGiB, localSSDCount int64) (int64, int64)
- func ResolveReservedMemoryMiB(instanceType string, memoryMiB int64) int64
- func ResolveReservedResource(instanceType string, ...) (int64, int64, int64, int64, int64)
- func SanitizeGCELabelValue(s string) string
- func WithDefaultFloat64(key string, def float64) float64
Constants ¶
View Source
const ( LabelNodePoolKey string = "karpenter.sh/nodepool" LabelGCENodeClassKey string = "karpenter.k8s.gcp/gcenodeclass" LabelClusterNameKey string = "goog-k8s-cluster-name" // LabelClusterLocationKey is a well-known GCE label key used by GKE. The value is the // cluster's location (region or zone, e.g. "us-central1" or "us-central1-f"). LabelClusterLocationKey string = "goog-k8s-cluster-location" )
Variables ¶
This section is empty.
Functions ¶
func GetAllSingleValuedRequirementLabels ¶
func GetAllSingleValuedRequirementLabels(instanceType *cloudprovider.InstanceType) map[string]string
func ResolveReservedCPUMCore ¶
func ResolveReservedResource ¶
func SanitizeGCELabelValue ¶
func WithDefaultFloat64 ¶
WithDefaultFloat64 returns the float64 value of the supplied environment variable or, if not present, the supplied default value. If the float64 conversion fails, returns the default
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.