Skip to content

Commit 7f21106

Browse files
committed
Add comment explaining frontend VPC subnet ID filtering in getNodeBalancerByIP
1 parent eb0cc32 commit 7f21106

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cloud/linode/loadbalancers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ func (l *loadbalancers) getNodeBalancerByIP(ctx context.Context, service *v1.Ser
727727
return nil, lbNotFoundError{serviceNn: getServiceNn(service)}
728728
}
729729

730+
// filter by subnet ID if specified for frontend vpc ip
730731
frontendSubnetID := service.GetAnnotations()[annotations.NodeBalancerFrontendSubnetID]
731732
if frontendSubnetID != "" {
732733
for _, NB := range lbs {

0 commit comments

Comments
 (0)