Skip to content

Commit

Permalink
Update internal/controllers/gateway/gateway_controller.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed May 10, 2024
1 parent 2af10bd commit 4255e66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/controllers/gateway/gateway_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down

0 comments on commit 4255e66

Please sign in to comment.