Skip to content

Commit e7c72e1

Browse files
committed
Fix enqueue
1 parent a4bd243 commit e7c72e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/controller/enqueue_with_matcher.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,27 @@ type EnqueueRequestsForCustomIndexField struct {
3030
}
3131

3232
// Create implements EventHandler
33-
func (e *EnqueueRequestsForCustomIndexField) Create(ctx context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface) {
33+
func (e *EnqueueRequestsForCustomIndexField) Create(ctx context.Context, evt event.CreateEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request]) {
3434
e.handle(evt.Object, evt.Object, q)
3535
}
3636

3737
// Update implements EventHandler
38-
func (e *EnqueueRequestsForCustomIndexField) Update(ctx context.Context, evt event.UpdateEvent, q workqueue.RateLimitingInterface) {
38+
func (e *EnqueueRequestsForCustomIndexField) Update(ctx context.Context, evt event.UpdateEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request]) {
3939
e.handle(evt.ObjectNew, evt.ObjectNew, q)
4040
}
4141

4242
// Delete implements EventHandler
43-
func (e *EnqueueRequestsForCustomIndexField) Delete(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface) {
43+
func (e *EnqueueRequestsForCustomIndexField) Delete(ctx context.Context, evt event.DeleteEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request]) {
4444
e.handle(evt.Object, evt.Object, q)
4545
}
4646

4747
// Generic implements EventHandler
48-
func (e *EnqueueRequestsForCustomIndexField) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface) {
48+
func (e *EnqueueRequestsForCustomIndexField) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.TypedRateLimitingInterface[reconcile.Request]) {
4949
e.handle(evt.Object, evt.Object, q)
5050
}
5151

5252
// handle common implementation to enqueue reconcile Requests for applications
53-
func (e *EnqueueRequestsForCustomIndexField) handle(evtMeta metav1.Object, evtObj runtime.Object, q workqueue.RateLimitingInterface) {
53+
func (e *EnqueueRequestsForCustomIndexField) handle(evtMeta metav1.Object, evtObj runtime.Object, q workqueue.TypedRateLimitingInterface[reconcile.Request]) {
5454
apps, _ := e.Matcher.Match(evtMeta)
5555
for _, app := range apps {
5656
q.Add(reconcile.Request{

0 commit comments

Comments
 (0)