File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments