Skip to content

Commit 5c1e5fb

Browse files
committed
Fix enqueue
1 parent 5a62daf commit 5c1e5fb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

catalog.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.19 AS builder
1+
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.18 AS builder
22
FROM registry.redhat.io/ubi9/ubi-minimal
33

44
# Add label for location of Declarative Config root directory & required OpenShift labels

internal/controller/enqueue_with_matcher.go

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

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

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

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

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

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

0 commit comments

Comments
 (0)