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:
@@ -168,7 +168,12 @@ func TestRequeueStuckDeployment(t *testing.T) {
|
||||
}
|
||||
|
||||
dc := &DeploymentController{
|
||||
queue: workqueue.NewNamedRateLimitingQueue(workqueue.DefaultControllerRateLimiter(), "doesnt_matter"),
|
||||
queue: workqueue.NewTypedRateLimitingQueueWithConfig(
|
||||
workqueue.DefaultTypedControllerRateLimiter[string](),
|
||||
workqueue.TypedRateLimitingQueueConfig[string]{
|
||||
Name: "doesnt_matter",
|
||||
},
|
||||
),
|
||||
}
|
||||
dc.enqueueDeployment = dc.enqueue
|
||||
|
||||
|
Reference in New Issue
Block a user