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
e3ea0b1c
Commit
e3ea0b1c
authored
Feb 09, 2016
by
Random-Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop using pod from livenessManager in main sync loop
parent
6bac4fdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
kubelet.go
pkg/kubelet/kubelet.go
+14
-2
No files found.
pkg/kubelet/kubelet.go
View file @
e3ea0b1c
...
...
@@ -2356,8 +2356,20 @@ func (kl *Kubelet) syncLoopIteration(updates <-chan kubetypes.PodUpdate, handler
case
update
:=
<-
kl
.
livenessManager
.
Updates
()
:
// We only care about failures (signalling container death) here.
if
update
.
Result
==
proberesults
.
Failure
{
glog
.
V
(
1
)
.
Infof
(
"SyncLoop (container unhealthy): %q"
,
format
.
Pod
(
update
.
Pod
))
handler
.
HandlePodSyncs
([]
*
api
.
Pod
{
update
.
Pod
})
// We should not use the pod from livenessManager, because it is never updated after
// initialization.
// TODO(random-liu): This is just a quick fix. We should:
// * Just pass pod UID in probe updates to make this less confusing.
// * Maybe probe manager should rely on pod manager, or at least the pod in probe manager
// should be updated.
pod
,
ok
:=
kl
.
podManager
.
GetPodByUID
(
update
.
Pod
.
UID
)
if
!
ok
{
// If the pod no longer exists, ignore the update.
glog
.
V
(
4
)
.
Infof
(
"SyncLoop (container unhealthy): ignore irrelevant update: %#v"
,
update
)
break
}
glog
.
V
(
1
)
.
Infof
(
"SyncLoop (container unhealthy): %q"
,
format
.
Pod
(
pod
))
handler
.
HandlePodSyncs
([]
*
api
.
Pod
{
pod
})
}
case
<-
housekeepingCh
:
if
!
kl
.
allSourcesReady
()
{
...
...
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