Skip to content

Commit

Permalink
fix(controller): also skip filtered annotation on reload (#2)
Browse files Browse the repository at this point in the history
Missed in #1, we also need to filter service annotations on reload
  • Loading branch information
ChandonPierre committed Nov 14, 2024
1 parent 09276c0 commit 90f9edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/k8s/controllers/service_controller_reload.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (r *ServiceReconciler) reprocessAll(ctx context.Context, req ctrl.Request)

retry := false
for _, service := range services.Items {
if filterByLoadBalancerClass(&service, r.LoadBalancerClass) {
if filterByLoadBalancerClass(&service, r.LoadBalancerClass) || filterByLoadBalancerAnnotation(&service, r.FilterAnnotations) {
level.Debug(r.Logger).Log("controller", "ServiceReconciler", "filtered service", req.NamespacedName)
continue
}
Expand Down

0 comments on commit 90f9edd

Please sign in to comment.