otterize / network-mapper

Map Kubernetes traffic: in-cluster, to the Internet, and to AWS IAM and export as text, intents, or an image
Apache License 2.0
612 stars 23 forks source link

Bugfix: network mapper returns duplicate intents on old service-intents endpoint #84

Closed amitlicht closed 1 year ago

amitlicht commented 1 year ago

Description

When querying the old serviceIntents graphql endpoint, the network mapper may return some duplicate intents. This happens because the intents store may store different intent types over the same edge (which is OK), but the serviceIntents endpoint ignores intent types, and so it should deduplicate similar client+server pairs.