Skip to content

Commit a9fe90f

Browse files
committed
fix: gatewayproxy match controller
Signed-off-by: Ashing Zheng <[email protected]>
1 parent 65cda84 commit a9fe90f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/controller/gatewayproxy_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"k8s.io/apimachinery/pkg/runtime/schema"
3131
k8stypes "k8s.io/apimachinery/pkg/types"
3232
ctrl "sigs.k8s.io/controller-runtime"
33+
"sigs.k8s.io/controller-runtime/pkg/builder"
3334
"sigs.k8s.io/controller-runtime/pkg/client"
3435
"sigs.k8s.io/controller-runtime/pkg/handler"
3536
"sigs.k8s.io/controller-runtime/pkg/predicate"
@@ -88,6 +89,9 @@ func (r *GatewayProxyController) SetupWithManager(mrg ctrl.Manager) error {
8889
Watches(
8990
icWatch,
9091
handler.EnqueueRequestsFromMapFunc(r.listGatewayProxiesForIngressClass),
92+
builder.WithPredicates(
93+
predicate.NewPredicateFuncs(matchesIngressController),
94+
),
9195
)
9296

9397
// Conditionally watch EndpointSlice or Endpoints based on cluster API support

0 commit comments

Comments
 (0)