Add work queues to PV controller

PV controller should not use Controller.Requeue, as as it is not available in
shared informers. We need to implement our own work queues instead where we
can enqueue volumes/claims as we want.
This commit is contained in:
Jan Safranek
2017-01-02 15:17:24 +01:00
parent dbb8bf5274
commit 0fd5f2028d
6 changed files with 242 additions and 219 deletions

View File

@@ -176,7 +176,7 @@ func TestControllerSync(t *testing.T) {
// Start the controller
stopCh := make(chan struct{})
ctrl.Run(stopCh)
go ctrl.Run(stopCh)
// Wait for the controller to pass initial sync and fill its caches.
for !ctrl.volumeController.HasSynced() ||