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 Apr 17, 2024
1 parent 83be6d3 commit b29c0d3
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 b29c0d3

Please sign in to comment.