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

Saving the network mapper state into a config map for persistency #40

Closed amit7itz closed 1 year ago

amit7itz commented 1 year ago

Description

This PR adds persistence to the Network Mapper collected information, so it won't be lost on every restart of the network mapper. It stores the network mapper data in a config map under the same namespace. In order to reset the network mapper data, use the otterize mapper reset.

References

https://www.notion.so/otterize/Access-Graph-make-network-mapper-persistent-keep-states-between-restarts-98020fa84bd2443fa49dddcc05a6f11d

Testing

Added a unit test that verifies the config map data saving mechanism works. Also tested on an actual EKS cluster manually, by resetting the network mapper and making sure the data was not lost.

Checklist