Open lambdanis opened 4 months ago
Another dependency that is not great is within the bpf package https://github.com/cilium/tetragon/pull/2717#issuecomment-2244670751.
Would like to work on this issue could you please assign it to me !!
Would like to work on this issue could you please assign it to me !!
sure go ahead, please feel free to ask questions. :)
I used gomod to check how Tetragon depends on cilium/cilium Go packages. Here we go:
(To make it clear - these are dependencies in Go code only. Tetragon doesn't have runtime dependencies on Cilium).
Many of these are just small helpers imported from cilium/cilium for historical reasons. We should review them and remove unnecessary dependencies. If Tetragon is importing a package from cilium/cilium just to use a small helper, it might make sense to write such helper inside Tetragon codebase.
Some cilium/cilium dependencies were removed already in #794/#2580, but there are several remaining. What's particularly problematic are transitive dependencies of k8s libraries via cilium/cilium. Because not all interfaces are stable, this means version of k8s libraries is tied to cilium/cilium version. Here's a graph of such dependencies: