mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
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:
@@ -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() ||
|
||||
|
||||
Reference in New Issue
Block a user