From 24dbee5fedf949fe80e75b62000003b2fd20fa02 Mon Sep 17 00:00:00 2001 From: Jay Deokar Date: Wed, 17 Jul 2024 13:51:15 -0700 Subject: [PATCH] Handle error while registring/deregistring target during load balancer update --- pkg/providers/v1/aws.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/providers/v1/aws.go b/pkg/providers/v1/aws.go index d1f9e9b9c9..32291d6b9d 100644 --- a/pkg/providers/v1/aws.go +++ b/pkg/providers/v1/aws.go @@ -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)