mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-10 17:35:44 -04:00
Used goroutine to launch node controller's internalPodInformer.
Node controller's internalPodInformer will block main thread if it is not started as a go routine. This patch fixed this by runing internalPodInformer as a go routine.
This commit is contained in:
parent
c4e2ade371
commit
46c302b4c2
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ func (nc *NodeController) Run() {
|
|||
go nc.podController.Run(wait.NeverStop)
|
||||
go nc.daemonSetController.Run(wait.NeverStop)
|
||||
if nc.internalPodInformer != nil {
|
||||
nc.internalPodInformer.Run(wait.NeverStop)
|
||||
go nc.internalPodInformer.Run(wait.NeverStop)
|
||||
}
|
||||
|
||||
// Incorporate the results of node status pushed from kubelet to master.
|
||||
|
|
|
|||
Loading…
Reference in a new issue