Skip to content

Commit eb6dcb3

Browse files
committed
add predicate
1 parent 995bf26 commit eb6dcb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/controller/gateway_controller.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ func (r *GatewayReconciler) SetupWithManager(mgr ctrl.Manager) error {
6262
For(
6363
&gatewayv1.Gateway{},
6464
builder.WithPredicates(
65-
predicate.NewPredicateFuncs(r.checkGatewayClass),
65+
predicate.And(
66+
predicate.NewPredicateFuncs(r.checkGatewayClass),
67+
predicate.GenerationChangedPredicate{},
68+
),
6669
),
6770
).
6871
Watches(

0 commit comments

Comments
 (0)