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
3429b9ac
Unverified
Commit
3429b9ac
authored
Sep 19, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #62544 from astefanutti/56297
Init Kubelet runtime cache before dependent stats provider
parents
259a59d9
a82c84e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
kubelet.go
pkg/kubelet/kubelet.go
+6
-5
No files found.
pkg/kubelet/kubelet.go
View file @
3429b9ac
...
@@ -690,6 +690,12 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
...
@@ -690,6 +690,12 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
klet
.
streamingRuntime
=
runtime
klet
.
streamingRuntime
=
runtime
klet
.
runner
=
runtime
klet
.
runner
=
runtime
runtimeCache
,
err
:=
kubecontainer
.
NewRuntimeCache
(
klet
.
containerRuntime
)
if
err
!=
nil
{
return
nil
,
err
}
klet
.
runtimeCache
=
runtimeCache
if
cadvisor
.
UsingLegacyCadvisorStats
(
containerRuntime
,
remoteRuntimeEndpoint
)
{
if
cadvisor
.
UsingLegacyCadvisorStats
(
containerRuntime
,
remoteRuntimeEndpoint
)
{
klet
.
StatsProvider
=
stats
.
NewCadvisorStatsProvider
(
klet
.
StatsProvider
=
stats
.
NewCadvisorStatsProvider
(
klet
.
cadvisor
,
klet
.
cadvisor
,
...
@@ -807,11 +813,6 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
...
@@ -807,11 +813,6 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
experimentalCheckNodeCapabilitiesBeforeMount
,
experimentalCheckNodeCapabilitiesBeforeMount
,
keepTerminatedPodVolumes
)
keepTerminatedPodVolumes
)
runtimeCache
,
err
:=
kubecontainer
.
NewRuntimeCache
(
klet
.
containerRuntime
)
if
err
!=
nil
{
return
nil
,
err
}
klet
.
runtimeCache
=
runtimeCache
klet
.
reasonCache
=
NewReasonCache
()
klet
.
reasonCache
=
NewReasonCache
()
klet
.
workQueue
=
queue
.
NewBasicWorkQueue
(
klet
.
clock
)
klet
.
workQueue
=
queue
.
NewBasicWorkQueue
(
klet
.
clock
)
klet
.
podWorkers
=
newPodWorkers
(
klet
.
syncPod
,
kubeDeps
.
Recorder
,
klet
.
workQueue
,
klet
.
resyncInterval
,
backOffPeriod
,
klet
.
podCache
)
klet
.
podWorkers
=
newPodWorkers
(
klet
.
syncPod
,
kubeDeps
.
Recorder
,
klet
.
workQueue
,
klet
.
resyncInterval
,
backOffPeriod
,
klet
.
podCache
)
...
...
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