From d162df37c39a186c6967dada80870198b8f053cf Mon Sep 17 00:00:00 2001 From: Zachary Nixon Date: Fri, 19 Sep 2025 15:37:46 -0700 Subject: [PATCH] fix null pointer when using NLB Gateways --- controllers/gateway/gateway_controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/gateway/gateway_controller.go b/controllers/gateway/gateway_controller.go index 71c5f19d5..49558f970 100644 --- a/controllers/gateway/gateway_controller.go +++ b/controllers/gateway/gateway_controller.go @@ -344,7 +344,9 @@ func (r *gatewayReconciler) deployModel(ctx context.Context, gw *gwv1.Gateway, s return err } r.logger.Info("successfully deployed model", "gateway", k8s.NamespacedName(gw)) - r.secretsManager.MonitorSecrets(k8s.NamespacedName(gw).String(), secrets) + if r.lbType == elbv2model.LoadBalancerTypeApplication { + r.secretsManager.MonitorSecrets(k8s.NamespacedName(gw).String(), secrets) + } return nil }