Merge pull request #18073 from ingvagabund/garbage-collector-low-high-threshold-test

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-12-07 02:10:57 -08:00
commit 316a8ac41c

View File

@ -101,6 +101,9 @@ func newImageManager(runtime container.Runtime, cadvisorInterface cadvisor.Inter
if policy.LowThresholdPercent < 0 || policy.LowThresholdPercent > 100 {
return nil, fmt.Errorf("invalid LowThresholdPercent %d, must be in range [0-100]", policy.LowThresholdPercent)
}
if policy.LowThresholdPercent > policy.HighThresholdPercent {
return nil, fmt.Errorf("LowThresholdPercent %d can not be higher than HighThresholdPercent %d", policy.LowThresholdPercent, policy.HighThresholdPercent)
}
im := &realImageManager{
runtime: runtime,
policy: policy,