mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Fix federation controller-manager initialization
This commit is contained in:
parent
df70b30e59
commit
867d49569e
@ -403,10 +403,12 @@ func (s *ServiceController) Run(workers int, stopCh <-chan struct{}) error {
|
|||||||
go wait.Until(s.clusterEndpointWorker, time.Second, stopCh)
|
go wait.Until(s.clusterEndpointWorker, time.Second, stopCh)
|
||||||
go wait.Until(s.clusterServiceWorker, time.Second, stopCh)
|
go wait.Until(s.clusterServiceWorker, time.Second, stopCh)
|
||||||
go wait.Until(s.clusterSyncLoop, time.Second, stopCh)
|
go wait.Until(s.clusterSyncLoop, time.Second, stopCh)
|
||||||
|
go func() {
|
||||||
<-stopCh
|
<-stopCh
|
||||||
glog.Infof("Shutting down Federation Service Controller")
|
glog.Infof("Shutting down Federation Service Controller")
|
||||||
s.queue.ShutDown()
|
s.queue.ShutDown()
|
||||||
s.federatedInformer.Stop()
|
s.federatedInformer.Stop()
|
||||||
|
}()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user