mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Merge pull request #10219 from mesosphere/static-file-source-seen
Mesos: create static pod file source only for configured static pods
This commit is contained in:
@@ -387,8 +387,10 @@ func (ks *KubeletExecutorServer) createAndInitKubelet(
|
|||||||
StaticPodsConfigPath: staticPodsConfigPath,
|
StaticPodsConfigPath: staticPodsConfigPath,
|
||||||
})
|
})
|
||||||
|
|
||||||
fileSourceUpdates := pc.Channel(kubelet.FileSource)
|
|
||||||
go exec.InitializeStaticPodsSource(func() {
|
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)
|
kconfig.NewSourceFile(staticPodsConfigPath, kc.Hostname, kc.FileCheckFrequency, fileSourceUpdates)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user