mirror of https://github.com/k3s-io/k3s
remove redundancy code in setCPUCgroupConfig
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>pull/6/head
parent
1d4e1d2dc2
commit
8adb2181eb
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue