From 65c286800ea33f385d471a392655566246b46e48 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 7ec9154f..1cfc6758 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)