Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceQuantity ¶
func ResourceQuantity(name corev1.ResourceName, v int64) resource.Quantity
func ResourceValue ¶
func ResourceValue(name corev1.ResourceName, q resource.Quantity) int64
ResourceValue returns the integer value for the resource name. It's milli-units for CPU and absolute units for everything else.
Types ¶
type FlavorResource ¶
type FlavorResource struct { Flavor kueue.ResourceFlavorReference Resource corev1.ResourceName }
type FlavorResourceQuantities ¶
type FlavorResourceQuantities map[FlavorResource]int64
type Requests ¶
type Requests map[corev1.ResourceName]int64
Requests maps ResourceName to flavor to value; for CPU it is tracked in MilliCPU.
func NewRequests ¶
func NewRequests(rl corev1.ResourceList) Requests
func (Requests) ToResourceList ¶
func (r Requests) ToResourceList() corev1.ResourceList
Click to show internal directories.
Click to hide internal directories.