Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scaleway/loadbalancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,12 @@ func (l *loadbalancers) unannotateAndPatch(service *v1.Service) error {

// updateLoadBalancer updates the loadbalancer's resources
func (l *loadbalancers) updateLoadBalancer(ctx context.Context, loadbalancer *scwlb.LB, service *v1.Service, nodes []*v1.Node) error {
// Skip update if the service is being deleted
if service.ObjectMeta.DeletionTimestamp != nil {
klog.V(3).Infof("skipping loadbalancer update for service %s/%s: service is being deleted", service.Namespace, service.Name)
return nil
}

lbExternallyManaged, err := svcExternallyManaged(service)
if err != nil {
klog.Errorf("invalid value for annotation %s", serviceAnnotationLoadBalancerExternallyManaged)
Expand Down