File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
exp/addons/internal/controllers
test/infrastructure/inmemory/pkg/runtime/cache Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ func (r *ClusterResourceSetReconciler) clusterToClusterResourceSet(ctx context.C
518
518
}
519
519
520
520
// resourceToClusterResourceSetFunc returns a typed mapper function that maps resources to ClusterResourceSet.
521
- func resourceToClusterResourceSetFunc [T client.Object ](ctrlClient client.Client ) handler.TypedMapFunc [T ] {
521
+ func resourceToClusterResourceSetFunc [T client.Object ](ctrlClient client.Client ) handler.TypedMapFunc [T , ctrl. Request ] {
522
522
return func (ctx context.Context , o T ) []ctrl.Request {
523
523
result := []ctrl.Request {}
524
524
Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ type cache struct {
76
76
garbageCollectorRequeueAfter time.Duration
77
77
garbageCollectorRequeueAfterJitterFactor float64
78
78
garbageCollectorConcurrency int
79
- garbageCollectorQueue workqueue.RateLimitingInterface
79
+ garbageCollectorQueue workqueue.TypedRateLimitingInterface [ any ]
80
80
81
81
syncPeriod time.Duration
82
82
syncConcurrency int
83
- syncQueue workqueue.RateLimitingInterface
83
+ syncQueue workqueue.TypedRateLimitingInterface [ any ]
84
84
85
85
started bool
86
86
}
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ func Test_cache_client(t *testing.T) {
638
638
ctx , cancel := context .WithCancel (context .TODO ())
639
639
defer cancel ()
640
640
641
- c .garbageCollectorQueue = workqueue .NewRateLimitingQueue (workqueue .DefaultControllerRateLimiter ())
641
+ c .garbageCollectorQueue = workqueue.NewTypedRateLimitingQueue [ any ] (workqueue .DefaultTypedControllerRateLimiter [ any ] ())
642
642
go func () {
643
643
<- ctx .Done ()
644
644
c .garbageCollectorQueue .ShutDown ()
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ func (c *cache) startGarbageCollector(ctx context.Context) error {
41
41
ctx = ctrl .LoggerInto (ctx , log )
42
42
43
43
log .Info ("Starting garbage collector queue" )
44
- c .garbageCollectorQueue = workqueue .NewRateLimitingQueue (workqueue .DefaultControllerRateLimiter ())
44
+ c .garbageCollectorQueue = workqueue.NewTypedRateLimitingQueue [ any ] (workqueue .DefaultTypedControllerRateLimiter [ any ] ())
45
45
go func () {
46
46
<- ctx .Done ()
47
47
c .garbageCollectorQueue .ShutDown ()
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func (c *cache) startSyncer(ctx context.Context) error {
44
44
ctx = ctrl .LoggerInto (ctx , log )
45
45
46
46
log .Info ("Starting syncer queue" )
47
- c .syncQueue = workqueue .NewRateLimitingQueue (workqueue .DefaultControllerRateLimiter ())
47
+ c .syncQueue = workqueue.NewTypedRateLimitingQueue [ any ] (workqueue .DefaultTypedControllerRateLimiter [ any ] ())
48
48
go func () {
49
49
<- ctx .Done ()
50
50
c .syncQueue .ShutDown ()
You can’t perform that action at this time.
0 commit comments