From c2d988cb9ccc2b33e1c579e98b02a63bc88ac826 Mon Sep 17 00:00:00 2001 From: iagoddvsantos Date: Tue, 4 Jul 2023 15:02:22 -0300 Subject: [PATCH] minor --- pkg/qdr/qdr.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/qdr/qdr.go b/pkg/qdr/qdr.go index ac2855cf7..caa99a6f9 100644 --- a/pkg/qdr/qdr.go +++ b/pkg/qdr/qdr.go @@ -1060,7 +1060,10 @@ func GetRouterConfigForHeadlessProxy(definition types.ServiceInterface, siteId s if len(definition.Targets) > 0 { target := definition.Targets[0] - targetNs = target.Namespace + if len(target.Namespace) > 0 { + targetNs = target.Namespace + } + if len(target.TargetPorts) > 0 { ports = target.TargetPorts }