Skip to content

Commit

Permalink
Fix bug where mapper visualize could get the wrong target namespace (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
omris94 authored Aug 25, 2024
1 parent 4b8690c commit f26befe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/intentsoutput/intentsvisualizer/visualizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit f26befe

Please sign in to comment.