Skip to content

Commit

Permalink
Handle error while registering/deregistering target during load balan…
Browse files Browse the repository at this point in the history
…cer update
  • Loading branch information
jaydeokar committed Jul 30, 2024
1 parent 2e2b06c commit 2483f91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/providers/v1/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -4492,7 +4492,8 @@ func (c *Cloud) UpdateLoadBalancer(ctx context.Context, clusterName string, serv

err = c.ensureLoadBalancerInstances(aws.StringValue(lb.LoadBalancerName), lb.Instances, instances)
if err != nil {
return nil
klog.Warningf("Error registering/deregistering instances with the load balancer: %q", err)
return err
}

err = c.updateInstanceSecurityGroupsForLoadBalancer(lb, instances, service.Annotations)
Expand Down

0 comments on commit 2483f91

Please sign in to comment.