package
0.15.0
Repository: https://github.com/armadaproject/armada.git
Documentation: pkg.go.dev

# Functions

CalculateTotalResource computes the combined total quantity of each resource (cpu, memory, etc) available for scheduling in the slice of nodes supplied as argument in the function.
CalculateTotalResourceRequest computes the combined total quantity of each resource (cpu, memory, etc) requested by each pod in the slice of pods supplied as argument in the function.
No description provided by the author
FromResourceList function takes a map with keys of type ResourceName and values of type "resource.Quantity" as defined in the K8s API.
QuantityAsFloat64 returns a float64 representation of a quantity.
TotalPodResourceRequest represents the resource request for a given pod is the maximum of: - sum of all containers - any individual init container This is because: - containers run in parallel (so need to sum resources) - init containers run sequentially (so only their individual resource need be considered) So pod resource usage is the max for each resource type (cpu/memory etc.) that could be used at any given time.

# Type aliases

No description provided by the author
ComputeResourcesFloat is float version of compute resource, prefer calculations with quantity where possible.