Skip to content

Commit 283ebb6

Browse files
authored
Merge pull request #2411 from sbueringer/pr-remove-deprecated-constructor
🌱 Use NewRateLimitingQueueWithConfig instead of deprecated NewNamedRateLimitingQueue
2 parents 56a973c + 48bf529 commit 283ebb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/controller/controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ func NewUnmanaged(name string, mgr manager.Manager, options Options) (Controller
159159
return &controller.Controller{
160160
Do: options.Reconciler,
161161
MakeQueue: func() workqueue.RateLimitingInterface {
162-
return workqueue.NewNamedRateLimitingQueue(options.RateLimiter, name)
162+
return workqueue.NewRateLimitingQueueWithConfig(options.RateLimiter, workqueue.RateLimitingQueueConfig{
163+
Name: name,
164+
})
163165
},
164166
MaxConcurrentReconciles: options.MaxConcurrentReconciles,
165167
CacheSyncTimeout: options.CacheSyncTimeout,

0 commit comments

Comments
 (0)