remove redundancy code in setCPUCgroupConfig

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
pull/6/head
yanxuean 2017-10-12 18:42:18 +08:00
parent 1d4e1d2dc2
commit 8adb2181eb
1 changed files with 0 additions and 3 deletions

View File

@ -194,9 +194,6 @@ func (m *qosContainerManagerImpl) setCPUCgroupConfig(configs map[v1.PodQOSClass]
// set burstable shares based on current observe state
burstableCPUShares := MilliCPUToShares(burstablePodCPURequest)
if burstableCPUShares < uint64(MinShares) {
burstableCPUShares = uint64(MinShares)
}
configs[v1.PodQOSBurstable].ResourceParameters.CpuShares = &burstableCPUShares
return nil
}