returnfmt.Errorf("Unexpected cpu allocatable value exposed by the node. Expected: %v, got: %v, capacity: %v",allocatableCPU,schedulerAllocatable[v1.ResourceCPU],capacity[v1.ResourceCPU])
returnfmt.Errorf("Unexpected cpu allocatable value exposed by the node. Expected: %v, got: %v, capacity: %v",allocatableCPU,schedulerAllocatable[v1.ResourceCPU],capacity[v1.ResourceMemory])
}
// Check that Allocatable reported to scheduler includes eviction thresholds.
schedulerAllocatable:=node.Status.Allocatable
// Memory allocatable should take into account eviction thresholds.
returnfmt.Errorf("Unexpected cpu allocatable value exposed by the node. Expected: %v, got: %v, capacity: %v",allocatableCPU,schedulerAllocatable[v1.ResourceCPU],capacity[v1.ResourceCPU])
returnfmt.Errorf("Unexpected memory allocatable value exposed by the node. Expected: %v, got: %v, capacity: %v",allocatableMemory,schedulerAllocatable[v1.ResourceMemory],capacity[v1.ResourceMemory])