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
116f06e9
Unverified
Commit
116f06e9
authored
May 14, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 14, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77661 from mfpierre/fix-static-pods-kubelet-status
Kubelet status manager sync the status of local Pods
parents
5c4b6528
27cccad8
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 @
116f06e9
...
@@ -162,7 +162,15 @@ func (kl *Kubelet) getPodResourcesDir() string {
...
@@ -162,7 +162,15 @@ func (kl *Kubelet) getPodResourcesDir() string {
// GetPods returns all pods bound to the kubelet and their spec, and the mirror
// GetPods returns all pods bound to the kubelet and their spec, and the mirror
// pods.
// pods.
func
(
kl
*
Kubelet
)
GetPods
()
[]
*
v1
.
Pod
{
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
// 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