Skip to content

Commit

Permalink
Use NewRateLimitingQueueWithConfig instead of deprecated NewNamedRate…
Browse files Browse the repository at this point in the history
…LimitingQueue
  • Loading branch information
sbueringer committed Jul 18, 2023
1 parent 56a973c commit 48bf529
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 48bf529

Please sign in to comment.