Use the generic/typed workqueue throughout

This change makes us use the generic workqueue throughout the project in
order to improve type safety and readability of the code.
This commit is contained in:
Alvaro Aleman
2024-04-28 18:26:18 +02:00
parent d387c0c903
commit 6d0ac8c561
94 changed files with 830 additions and 603 deletions

View File

@@ -188,8 +188,8 @@ type PersistentVolumeController struct {
// version errors in API server and other checks in this controller),
// however overall speed of multi-worker controller would be lower than if
// it runs single thread only.
claimQueue *workqueue.Type
volumeQueue *workqueue.Type
claimQueue *workqueue.Typed[string]
volumeQueue *workqueue.Typed[string]
// Map of scheduled/running operations.
runningOperations goroutinemap.GoRoutineMap