Skip to content

Commit

Permalink
single out the pod fetch error case more
Browse files Browse the repository at this point in the history
  • Loading branch information
ndhanushkodi committed Mar 15, 2024
1 parent 9988f1c commit 51e68f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func (r *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
if k8serrors.IsNotFound(err) {
deregisterEndpointAddress[address.IP] = true
} else {
deregisterEndpointAddress[address.IP] = false
r.Log.Error(err, "failed to get pod", "name", address.TargetRef.Name)
errs = multierror.Append(errs, err)
}
Expand Down Expand Up @@ -1636,5 +1637,5 @@ func deregister(address string, deregisterEndpointAddress map[string]bool) bool
if ok {
return deregister
}
return false
return true
}

0 comments on commit 51e68f0

Please sign in to comment.