Skip to content

Commit

Permalink
AP: fix watch-namespace for NAP resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Wegrzycki authored Oct 13, 2021
1 parent 1c0577d commit b6a4874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/k8s/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b6a4874

Please sign in to comment.