Fix incorrect reporting of total request including current pod in the

resource allocation priority function.
pull/8/head
Avesh Agarwal 2018-08-07 15:37:55 -04:00
parent 733a381ec4
commit ea7f711ae2
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func (r *ResourceAllocationPriority) PriorityMap(
"%v -> %v: %v, capacity %d millicores %d memory bytes, total request %d millicores %d memory bytes, score %d",
pod.Name, node.Name, r.Name,
allocatable.MilliCPU, allocatable.Memory,
requested.MilliCPU+allocatable.MilliCPU, requested.Memory+allocatable.Memory,
requested.MilliCPU, requested.Memory,
score,
)
}