mirror of https://github.com/k3s-io/k3s
Use arg cgroupRoot,not nodeConfig.CgroupRoot
Using both arg cgroupRoot and nodeConfig.CgroupRoot is confused in function NewQOSContainerManager Signed-off-by: yanxuean <yan.xuean@zte.com.cn>pull/6/head
parent
e5fb3d7108
commit
45146cff4e
|
@ -63,7 +63,7 @@ type qosContainerManagerImpl struct {
|
|||
func NewQOSContainerManager(subsystems *CgroupSubsystems, cgroupRoot string, nodeConfig NodeConfig) (QOSContainerManager, error) {
|
||||
if !nodeConfig.CgroupsPerQOS {
|
||||
return &qosContainerManagerNoop{
|
||||
cgroupRoot: CgroupName(nodeConfig.CgroupRoot),
|
||||
cgroupRoot: CgroupName(cgroupRoot),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue