Skip to content

Commit

Permalink
Handle error while registring/deregistring target during load balance…
Browse files Browse the repository at this point in the history
…r update
  • Loading branch information
jaydeokar committed Jul 17, 2024
1 parent c1f74ef commit 24dbee5
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 @@ -3013,7 +3013,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/deregistring instances with the load balancer: %q", err)
return err
}

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

0 comments on commit 24dbee5

Please sign in to comment.