Expose Start method, don't call in constructor

This commit is contained in:
Tim St. Clair
2015-12-09 10:58:15 -08:00
parent 32794b18f0
commit 246442514c
5 changed files with 11 additions and 18 deletions

View File

@@ -918,8 +918,9 @@ func (kl *Kubelet) Run(updates <-chan kubetypes.PodUpdate) {
// handled by pod workers).
go util.Until(kl.podKiller, 1*time.Second, util.NeverStop)
// Run the system oom watcher forever.
// Start component sync loops.
kl.statusManager.Start()
kl.probeManager.Start()
// Start the pod lifecycle event generator.
kl.pleg.Start()
kl.syncLoop(updates, kl)