capitalize the first letter
capitalize the first letter for the field comment of containerManagerImpl Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
This commit is contained in:
parent
f011c044d4
commit
5d5fee8cab
@ -110,7 +110,7 @@ type containerManagerImpl struct {
|
|||||||
qosContainers QOSContainersInfo
|
qosContainers QOSContainersInfo
|
||||||
// Tasks that are run periodically
|
// Tasks that are run periodically
|
||||||
periodicTasks []func()
|
periodicTasks []func()
|
||||||
// holds all the mounted cgroup subsystems
|
// Holds all the mounted cgroup subsystems
|
||||||
subsystems *CgroupSubsystems
|
subsystems *CgroupSubsystems
|
||||||
nodeInfo *v1.Node
|
nodeInfo *v1.Node
|
||||||
// Interface for cgroup management
|
// Interface for cgroup management
|
||||||
|
@ -95,8 +95,8 @@ func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceLis
|
|||||||
|
|
||||||
// Create containers for both qos classes
|
// Create containers for both qos classes
|
||||||
for qosClass, containerName := range qosClasses {
|
for qosClass, containerName := range qosClasses {
|
||||||
// get the container's abstract name
|
// get the container's absolute name
|
||||||
abstractContainerName := CgroupName(containerName)
|
absoluteContainerName := CgroupName(containerName)
|
||||||
|
|
||||||
resourceParameters := &ResourceConfig{}
|
resourceParameters := &ResourceConfig{}
|
||||||
// the BestEffort QoS class has a statically configured minShares value
|
// the BestEffort QoS class has a statically configured minShares value
|
||||||
@ -107,7 +107,7 @@ func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceLis
|
|||||||
|
|
||||||
// containerConfig object stores the cgroup specifications
|
// containerConfig object stores the cgroup specifications
|
||||||
containerConfig := &CgroupConfig{
|
containerConfig := &CgroupConfig{
|
||||||
Name: abstractContainerName,
|
Name: absoluteContainerName,
|
||||||
ResourceParameters: resourceParameters,
|
ResourceParameters: resourceParameters,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check if it exists
|
// check if it exists
|
||||||
if !cm.Exists(abstractContainerName) {
|
if !cm.Exists(absoluteContainerName) {
|
||||||
if err := cm.Create(containerConfig); err != nil {
|
if err := cm.Create(containerConfig); err != nil {
|
||||||
return fmt.Errorf("failed to create top level %v QOS cgroup : %v", qosClass, err)
|
return fmt.Errorf("failed to create top level %v QOS cgroup : %v", qosClass, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user