mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00: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
@ -388,7 +388,7 @@ func (nc *NodeController) Run() {
|
|||||||
go nc.podController.Run(wait.NeverStop)
|
go nc.podController.Run(wait.NeverStop)
|
||||||
go nc.daemonSetController.Run(wait.NeverStop)
|
go nc.daemonSetController.Run(wait.NeverStop)
|
||||||
if nc.internalPodInformer != nil {
|
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.
|
// Incorporate the results of node status pushed from kubelet to master.
|
||||||
|
Loading…
Reference in New Issue
Block a user