mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Update comments.
Change limit to request in the comments for CheckPodsExceedingFreeResources()
This commit is contained in:
		@@ -127,12 +127,12 @@ func CheckPodsExceedingFreeResources(pods []*api.Pod, capacity api.ResourceList)
 | 
			
		||||
		fitsCPU := totalMilliCPU == 0 || (totalMilliCPU-milliCPURequested) >= podRequest.milliCPU
 | 
			
		||||
		fitsMemory := totalMemory == 0 || (totalMemory-memoryRequested) >= podRequest.memory
 | 
			
		||||
		if !fitsCPU {
 | 
			
		||||
			// the pod doesn't fit due to CPU limit
 | 
			
		||||
			// the pod doesn't fit due to CPU request
 | 
			
		||||
			notFittingCPU = append(notFittingCPU, pod)
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		if !fitsMemory {
 | 
			
		||||
			// the pod doesn't fit due to Memory limit
 | 
			
		||||
			// the pod doesn't fit due to Memory request
 | 
			
		||||
			notFittingMemory = append(notFittingMemory, pod)
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user