mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
remove redundancy code in setCPUCgroupConfig
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
This commit is contained in:
parent
1d4e1d2dc2
commit
8adb2181eb
@ -194,9 +194,6 @@ func (m *qosContainerManagerImpl) setCPUCgroupConfig(configs map[v1.PodQOSClass]
|
|||||||
|
|
||||||
// set burstable shares based on current observe state
|
// set burstable shares based on current observe state
|
||||||
burstableCPUShares := MilliCPUToShares(burstablePodCPURequest)
|
burstableCPUShares := MilliCPUToShares(burstablePodCPURequest)
|
||||||
if burstableCPUShares < uint64(MinShares) {
|
|
||||||
burstableCPUShares = uint64(MinShares)
|
|
||||||
}
|
|
||||||
configs[v1.PodQOSBurstable].ResourceParameters.CpuShares = &burstableCPUShares
|
configs[v1.PodQOSBurstable].ResourceParameters.CpuShares = &burstableCPUShares
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user