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 18, 2024
1 parent c1f74ef commit e34dd73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/cloud-provider-aws

go 1.22.4
go 1.22.5

require (
github.com/aws/aws-sdk-go v1.54.15
Expand Down
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
2 changes: 1 addition & 1 deletion tests/e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/cloud-provider-aws/tests/e2e

go 1.22.4
go 1.22.5

require (
github.com/onsi/ginkgo/v2 v2.9.4
Expand Down

0 comments on commit e34dd73

Please sign in to comment.