Commit a3b3a9d8 authored by Maxwell Forbes's avatar Maxwell Forbes

Merge pull request #10219 from mesosphere/static-file-source-seen

Mesos: create static pod file source only for configured static pods
parents 461fc2b0 9e0c9b4f
......@@ -387,8 +387,10 @@ func (ks *KubeletExecutorServer) createAndInitKubelet(
StaticPodsConfigPath: staticPodsConfigPath,
})
fileSourceUpdates := pc.Channel(kubelet.FileSource)
go exec.InitializeStaticPodsSource(func() {
// Create file source only when we are called back. Otherwise, it is never marked unseen.
fileSourceUpdates := pc.Channel(kubelet.FileSource)
kconfig.NewSourceFile(staticPodsConfigPath, kc.Hostname, kc.FileCheckFrequency, fileSourceUpdates)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment