diff --git a/internal/controllers/gateway/gateway_controller.go b/internal/controllers/gateway/gateway_controller.go index e1331594c7..c44cd17050 100644 --- a/internal/controllers/gateway/gateway_controller.go +++ b/internal/controllers/gateway/gateway_controller.go @@ -101,8 +101,9 @@ func (r *GatewayReconciler) SetupWithManager(mgr ctrl.Manager) error { }). // watch Gateway objects, filtering out any Gateways which are not configured with // a supported GatewayClass controller name. - For(&gatewayapi.Gateway{}). - WithEventFilter(predicate.NewPredicateFuncs(r.gatewayHasMatchingGatewayClass)). + For(&gatewayapi.Gateway{}, + builder.WithPredicates(predicate.NewPredicateFuncs(r.gatewayHasMatchingGatewayClass)), + ). // watch for updates to gatewayclasses, if any gateway classes change, enqueue // reconciliation for all supported gateway objects which reference it. Watches(&gatewayapi.GatewayClass{},