Integration test to verify alloc works

Add integration test to verify allocatable can works
This commit is contained in:
Harry Zhang
2016-01-14 00:29:31 +08:00
committed by harry
parent e64fe82245
commit 0202a206b8
2 changed files with 116 additions and 1 deletions

View File

@@ -305,7 +305,6 @@ func (r *ResourceFit) PodFitsResources(pod *api.Pod, existingPods []*api.Pod, no
}
allocatable := info.Status.Allocatable
if int64(len(existingPods))+1 > allocatable.Pods().Value() {
glog.V(10).Infof("Cannot schedule Pod %+v, because Node %+v is full, running %v out of %v Pods.", podName(pod), node, len(existingPods), allocatable.Pods().Value())
return false, ErrExceededMaxPodNumber