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

Fixed labels in intents overwritten after initial query #108

Closed evyatarmeged closed 1 year ago

evyatarmeged commented 1 year ago

Description

Labels in intents were overwritten after one query for intents, because they're saved in a map and were getting mutated in place. Changed to use deep copy in intents resolver instead. Also fixed a bug where server pods were not taken into consideration when excluding labels.