Skip to content

Commit

Permalink
Merge pull request #2411 from sbueringer/pr-remove-deprecated-constru…
Browse files Browse the repository at this point in the history
…ctor

🌱 Use NewRateLimitingQueueWithConfig instead of deprecated NewNamedRateLimitingQueue
  • Loading branch information
k8s-ci-robot committed Jul 18, 2023
2 parents 56a973c + 48bf529 commit 283ebb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ func NewUnmanaged(name string, mgr manager.Manager, options Options) (Controller
return &controller.Controller{
Do: options.Reconciler,
MakeQueue: func() workqueue.RateLimitingInterface {
return workqueue.NewNamedRateLimitingQueue(options.RateLimiter, name)
return workqueue.NewRateLimitingQueueWithConfig(options.RateLimiter, workqueue.RateLimitingQueueConfig{
Name: name,
})
},
MaxConcurrentReconciles: options.MaxConcurrentReconciles,
CacheSyncTimeout: options.CacheSyncTimeout,
Expand Down

0 comments on commit 283ebb6

Please sign in to comment.