Skip to content

Commit f8f238c

Browse files
authored
fix(lb): make loadbalancer fallback name lookup honor zone annotation (#160)
* fix(lb): make loadbalancer fallback name lookup honor zone annotation
1 parent 0121857 commit f8f238c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaleway/loadbalancers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ func (l *loadbalancers) getLoadbalancerByName(ctx context.Context, service *v1.S
487487

488488
var loadbalancer *scwlb.LB
489489
resp, err := l.api.ListLBs(&scwlb.ZonedAPIListLBsRequest{
490-
//Zone: Use default zone from SDK
491490
Name: &name,
491+
Zone: getLoadBalancerZone(service),
492492
}, scw.WithAllPages())
493493
if err != nil {
494494
return nil, err

0 commit comments

Comments
 (0)