Skip to content

Commit 15951e8

Browse files
committed
Check if LB has a stack
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
1 parent e933c3d commit 15951e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func matchIngressesToLoadBalancers(
454454
}
455455

456456
// Ignore NLBs with a wrong set of subnets
457-
if lb.loadBalancerType == aws.LoadBalancerTypeNetwork {
457+
if lb.loadBalancerType == aws.LoadBalancerTypeNetwork && lb.stack != nil {
458458
subnets := subnetsByScheme(lb.scheme)
459459
sort.Strings(subnets)
460460
sort.Strings(lb.stack.Subnets)

0 commit comments

Comments
 (0)