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
43fc67a5
Commit
43fc67a5
authored
May 02, 2016
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubelet: do not force update the runtime cache
Pod workers don't rely on the old runtime cache to sync pods anymore. There is no need to force update the cache on every container event.
parent
879c1807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
kubelet.go
pkg/kubelet/kubelet.go
+0
-6
No files found.
pkg/kubelet/kubelet.go
View file @
43fc67a5
...
...
@@ -2598,12 +2598,6 @@ func (kl *Kubelet) syncLoopIteration(configCh <-chan kubetypes.PodUpdate, handle
break
}
glog
.
V
(
2
)
.
Infof
(
"SyncLoop (PLEG): %q, event: %#v"
,
format
.
Pod
(
pod
),
e
)
// Force the container runtime cache to update.
if
err
:=
kl
.
runtimeCache
.
ForceUpdateIfOlder
(
kl
.
clock
.
Now
());
err
!=
nil
{
glog
.
Errorf
(
"SyncLoop: unable to update runtime cache"
)
// TODO (yujuhong): should we delay the sync until container
// runtime can be updated?
}
handler
.
HandlePodSyncs
([]
*
api
.
Pod
{
pod
})
case
<-
syncCh
:
// Sync pods waiting for sync
...
...
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