Rename and add unit test for ImageSizes
This commit is contained in:
@@ -72,7 +72,7 @@ func calculateScoreFromSize(sumSize int64) int {
|
||||
func totalImageSize(nodeInfo *schedulercache.NodeInfo, containers []v1.Container) int64 {
|
||||
var total int64
|
||||
|
||||
imageSizes := nodeInfo.Images()
|
||||
imageSizes := nodeInfo.ImageSizes()
|
||||
for _, container := range containers {
|
||||
if size, ok := imageSizes[container.Image]; ok {
|
||||
total += size
|
||||
|
||||
Reference in New Issue
Block a user