(obj interface{})
| 110 | } |
| 111 | |
| 112 | func (w *WorkerPool) enqueue(obj interface{}) { |
| 113 | pod := obj.(*corev1.Pod) |
| 114 | if isIdleWorker(pod) { |
| 115 | key, _ := cache.MetaNamespaceKeyFunc(obj) |
| 116 | w.queue.Add(key) |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | func (w *WorkerPool) Run(stopCh <-chan struct{}) { |
| 121 | if !cache.WaitForCacheSync(stopCh, w.podInformer.HasSynced) { |
no test coverage detected