Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5d5fee8c
Commit
5d5fee8c
authored
Oct 09, 2017
by
yanxuean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
capitalize the first letter
capitalize the first letter for the field comment of containerManagerImpl Signed-off-by:
yanxuean
<
yan.xuean@zte.com.cn
>
parent
f011c044
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
container_manager_linux.go
pkg/kubelet/cm/container_manager_linux.go
+1
-1
qos_container_manager_linux.go
pkg/kubelet/cm/qos_container_manager_linux.go
+4
-4
No files found.
pkg/kubelet/cm/container_manager_linux.go
View file @
5d5fee8c
...
@@ -110,7 +110,7 @@ type containerManagerImpl struct {
...
@@ -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
()
//
h
olds all the mounted cgroup subsystems
//
H
olds all the mounted cgroup subsystems
subsystems
*
CgroupSubsystems
subsystems
*
CgroupSubsystems
nodeInfo
*
v1
.
Node
nodeInfo
*
v1
.
Node
// Interface for cgroup management
// Interface for cgroup management
...
...
pkg/kubelet/cm/qos_container_manager_linux.go
View file @
5d5fee8c
...
@@ -95,8 +95,8 @@ func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceLis
...
@@ -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 abs
tract
name
// get the container's abs
olute
name
abs
tract
ContainerName
:=
CgroupName
(
containerName
)
abs
olute
ContainerName
:=
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
...
@@ -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
:
abs
tract
ContainerName
,
Name
:
abs
olute
ContainerName
,
ResourceParameters
:
resourceParameters
,
ResourceParameters
:
resourceParameters
,
}
}
...
@@ -117,7 +117,7 @@ func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceLis
...
@@ -117,7 +117,7 @@ func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceLis
}
}
// check if it exists
// check if it exists
if
!
cm
.
Exists
(
abs
tract
ContainerName
)
{
if
!
cm
.
Exists
(
abs
olute
ContainerName
)
{
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
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment