mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Revert "Small improve for GetContainerOOMScoreAdjust"
This commit is contained in:
		@@ -72,8 +72,8 @@ func GetContainerOOMScoreAdjust(pod *v1.Pod, container *v1.Container, memoryCapa
 | 
				
			|||||||
		return (1000 + guaranteedOOMScoreAdj)
 | 
							return (1000 + guaranteedOOMScoreAdj)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	// Give burstable pods a higher chance of survival over besteffort pods.
 | 
						// Give burstable pods a higher chance of survival over besteffort pods.
 | 
				
			||||||
	if int(oomScoreAdjust) >= besteffortOOMScoreAdj {
 | 
						if int(oomScoreAdjust) == besteffortOOMScoreAdj {
 | 
				
			||||||
		return int(besteffortOOMScoreAdj - 1)
 | 
							return int(oomScoreAdjust - 1)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return int(oomScoreAdjust)
 | 
						return int(oomScoreAdjust)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user