From 86c03d685985d85aa362e20b5750c6e88f7e92f0 Mon Sep 17 00:00:00 2001 From: "omri.s" Date: Sun, 25 Aug 2024 17:19:59 +0300 Subject: [PATCH] Fix bug where mapper visualize could get the wrong target namespace --- src/pkg/intentsoutput/intentsvisualizer/visualizer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/intentsoutput/intentsvisualizer/visualizer.go b/src/pkg/intentsoutput/intentsvisualizer/visualizer.go index 8d4e20a..17ee624 100644 --- a/src/pkg/intentsoutput/intentsvisualizer/visualizer.go +++ b/src/pkg/intentsoutput/intentsvisualizer/visualizer.go @@ -110,7 +110,7 @@ func (v *Visualizer) buildEdges(intents []v2alpha1.ClientIntents) error { clientNS := intent.Namespace clientName := getServiceNameWithNamespace(clientNS, intent.GetWorkloadName()) for _, call := range intent.GetTargetList() { - targetServiceName := getServiceNameWithNamespace(clientNS, call.GetTargetServerName()) + targetServiceName := getServiceNameWithNamespace(clientNS, call.GetTargetServerNameAsWritten()) _, err := v.graph.CreateEdge( fmt.Sprintf("%s to %s", clientName, targetServiceName), v.nodeCache[clientName],