mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
add an starting info log of namespace controller.
This commit is contained in:
parent
b248f77722
commit
8ab2110328
@ -183,14 +183,16 @@ func (nm *NamespaceController) Run(workers int, stopCh <-chan struct{}) {
|
|||||||
defer utilruntime.HandleCrash()
|
defer utilruntime.HandleCrash()
|
||||||
defer nm.queue.ShutDown()
|
defer nm.queue.ShutDown()
|
||||||
|
|
||||||
|
glog.Infof("Starting namespace controller")
|
||||||
|
defer glog.Infof("Shutting down namespace controller")
|
||||||
|
|
||||||
if !controller.WaitForCacheSync("namespace", stopCh, nm.listerSynced) {
|
if !controller.WaitForCacheSync("namespace", stopCh, nm.listerSynced) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(5).Info("Starting workers")
|
glog.V(5).Info("Starting workers of namespace controller")
|
||||||
for i := 0; i < workers; i++ {
|
for i := 0; i < workers; i++ {
|
||||||
go wait.Until(nm.worker, time.Second, stopCh)
|
go wait.Until(nm.worker, time.Second, stopCh)
|
||||||
}
|
}
|
||||||
<-stopCh
|
<-stopCh
|
||||||
glog.V(1).Infof("Shutting down")
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user