File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ import (
6
6
7
7
"golang.org/x/time/rate"
8
8
"k8s.io/client-go/util/workqueue"
9
+ "sigs.k8s.io/controller-runtime/pkg/reconcile"
9
10
)
10
11
11
- func RateLimiter () workqueue.RateLimiter {
12
- return workqueue .NewMaxOfRateLimiter (
13
- workqueue .NewItemExponentialFailureRateLimiter (100 * time .Millisecond , 1 * time .Minute ),
14
- & workqueue.BucketRateLimiter {Limiter : rate .NewLimiter (rate .Limit (10 ), 100 )},
12
+ func RateLimiter () workqueue.TypedRateLimiter [reconcile. Request ] {
13
+ return workqueue .NewTypedMaxOfRateLimiter [reconcile. Request ] (
14
+ workqueue .NewTypedItemExponentialFailureRateLimiter [reconcile. Request ] (100 * time .Millisecond , 1 * time .Minute ),
15
+ & workqueue.TypedBucketRateLimiter [reconcile. Request ] {Limiter : rate .NewLimiter (rate .Limit (10 ), 100 )},
15
16
)
16
17
}
You can’t perform that action at this time.
0 commit comments