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
27cccad8
Commit
27cccad8
authored
Jan 04, 2018
by
JulienBalestra
Committed by
Pierre
May 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kubelet provides an updated and complete status of local-static Pods
parent
b9bde60c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
kubelet_getters.go
pkg/kubelet/kubelet_getters.go
+9
-1
No files found.
pkg/kubelet/kubelet_getters.go
View file @
27cccad8
...
...
@@ -162,7 +162,15 @@ func (kl *Kubelet) getPodResourcesDir() string {
// GetPods returns all pods bound to the kubelet and their spec, and the mirror
// pods.
func
(
kl
*
Kubelet
)
GetPods
()
[]
*
v1
.
Pod
{
return
kl
.
podManager
.
GetPods
()
pods
:=
kl
.
podManager
.
GetPods
()
// a kubelet running without apiserver requires an additional
// update of the static pod status. See #57106
for
_
,
p
:=
range
pods
{
if
status
,
ok
:=
kl
.
statusManager
.
GetPodStatus
(
p
.
UID
);
ok
{
p
.
Status
=
status
}
}
return
pods
}
// GetRunningPods returns all pods running on kubelet from looking at the
...
...
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