Skip to content

Commit

Permalink
Make logging less noisy when target port is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Nov 8, 2024
1 parent 1108377 commit 80a95e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1663,8 +1663,8 @@ func (lbc *LoadBalancerController) getEndpointsFromEndpointSlice(ctx context.Con

targetPort, err := lbc.resolveTargetPort(svcPort, epPort, ref)
if err != nil {
log.Error(err, "Unable to get target port", "pod", klog.KRef(ref.Namespace, ref.Name),
"servicePort", klog.Format(svcPort), "endpointPort", klog.Format(epPort))
log.V(4).Info("Unable to get target port", "pod", klog.KRef(ref.Namespace, ref.Name),
"servicePort", klog.Format(svcPort), "endpointPort", klog.Format(epPort), "error", err)
continue
}

Expand Down

0 comments on commit 80a95e6

Please sign in to comment.