diff --git a/internal/k8s/controller.go b/internal/k8s/controller.go index b4ba04146c..09fbbdcd8a 100644 --- a/internal/k8s/controller.go +++ b/internal/k8s/controller.go @@ -244,7 +244,7 @@ func NewLoadBalancerController(input NewLoadBalancerControllerInput) *LoadBalanc lbc.addPodHandler() if lbc.appProtectEnabled { - lbc.dynInformerFactory = dynamicinformer.NewDynamicSharedInformerFactory(lbc.dynClient, 0) + lbc.dynInformerFactory = dynamicinformer.NewFilteredDynamicSharedInformerFactory(lbc.dynClient, 0, lbc.namespace, nil) lbc.addAppProtectPolicyHandler(createAppProtectPolicyHandlers(lbc)) lbc.addAppProtectLogConfHandler(createAppProtectLogConfHandlers(lbc))