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
bfde580c
Commit
bfde580c
authored
Mar 07, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22656 from derekwaynecarr/fix_node_e2e_systemd
Auto commit by PR queue bot
parents
0e861a88
26dbbdb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
summary.go
pkg/kubelet/server/stats/summary.go
+8
-1
No files found.
pkg/kubelet/server/stats/summary.go
View file @
bfde580c
...
@@ -19,6 +19,7 @@ package stats
...
@@ -19,6 +19,7 @@ package stats
import
(
import
(
"fmt"
"fmt"
"runtime"
"runtime"
"strings"
"time"
"time"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api"
...
@@ -184,7 +185,13 @@ func (sb *summaryBuilder) latestContainerStats(info *cadvisorapiv2.ContainerInfo
...
@@ -184,7 +185,13 @@ func (sb *summaryBuilder) latestContainerStats(info *cadvisorapiv2.ContainerInfo
func
(
sb
*
summaryBuilder
)
buildSummaryPods
()
[]
stats
.
PodStats
{
func
(
sb
*
summaryBuilder
)
buildSummaryPods
()
[]
stats
.
PodStats
{
// Map each container to a pod and update the PodStats with container data
// Map each container to a pod and update the PodStats with container data
podToStats
:=
map
[
stats
.
PodReference
]
*
stats
.
PodStats
{}
podToStats
:=
map
[
stats
.
PodReference
]
*
stats
.
PodStats
{}
for
_
,
cinfo
:=
range
sb
.
infos
{
for
key
,
cinfo
:=
range
sb
.
infos
{
// on systemd using devicemapper each mount into the container has an associated cgroup.
// we ignore them to ensure we do not get duplicate entries in our summary.
// for details on .mount units: http://man7.org/linux/man-pages/man5/systemd.mount.5.html
if
strings
.
HasSuffix
(
key
,
".mount"
)
{
continue
}
// Build the Pod key if this container is managed by a Pod
// Build the Pod key if this container is managed by a Pod
if
!
sb
.
isPodManagedContainer
(
&
cinfo
)
{
if
!
sb
.
isPodManagedContainer
(
&
cinfo
)
{
continue
continue
...
...
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