From b29c0d30bd1f7b2b27e6128bf182d10308382ce5 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Larsen Date: Wed, 14 Jun 2023 17:18:51 +0200 Subject: [PATCH] Check if LB has a stack Signed-off-by: Mikkel Oscar Lyderik Larsen --- worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.go b/worker.go index 43874a11..692d5cec 100644 --- a/worker.go +++ b/worker.go @@ -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)