Skip to content

Commit

Permalink
Check if LB has a stack
Browse files Browse the repository at this point in the history
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
  • Loading branch information
mikkeloscar committed Jun 14, 2023
1 parent e933c3d commit 15951e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func matchIngressesToLoadBalancers(
}

// Ignore NLBs with a wrong set of subnets
if lb.loadBalancerType == aws.LoadBalancerTypeNetwork {
if lb.loadBalancerType == aws.LoadBalancerTypeNetwork && lb.stack != nil {
subnets := subnetsByScheme(lb.scheme)
sort.Strings(subnets)
sort.Strings(lb.stack.Subnets)
Expand Down

0 comments on commit 15951e8

Please sign in to comment.