You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@yeya24 Thanks for your suggestion 🍻 . In the previous version of chaos-mesh, we setns through github.com/vishvananda/netns pkg. In #31, chaos-mesh turned to use nsenter to enter a network namespace.
According to the document you have shared with us, after go 1.10 we can work with network namespace in go safely.
Controling networkspace in a "programmable" way is definitely better than using nsenter and the limitation (require go >= 1.10) is surely acceptable. I will work on this right after Spring Festival (or would you contribute to chaos-mesh 😄 ? )
@YangKeao Thanks. To be honest, I haven't noticed that network ns leakage before. I am not sure whether this package is safe enough, though it is used in CNI. I think I can investigate more and test locally first for this plan.
Question
https://github.com/containernetworking/plugins/blob/master/pkg/ns/README.md has basic network ns utilities. Is it better to use it instead of using cmd with nsenter?
With that pkg, we can solve #64 as well.
But with that pkg, the code will become more complicated than the current implementation.
The text was updated successfully, but these errors were encountered: