New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Break import cycles and move the datapath cell to datapath/cell.go #24337
Break import cycles and move the datapath cell to datapath/cell.go #24337
Conversation
4cde4c2
to
11afe7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change overall, but we should minimize churn wherever we can to reduce backport pain.
11afe7f
to
187724e
Compare
187724e
to
96f0af1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci-structure
got assigned due to trivial change in test
, acking just to get it green.
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hubble changes LGTM, thanks @bimmlerd!
In preparation of moving the datapath module into datapath/cells.go, we need to break import cycles by moving the interface definitions into their own package. Reuse the existing datapath/types package for this, and adjust code and tests everywhere accordingly. Signed-off-by: David Bimmler <david.bimmler@isovalent.com>
Now that there are no more circular imports, we can move the datapath cell and associated initialization code to pkg/datapath. The sysctl stuff should most definitely not live toplevel here, but one step at a time. Signed-off-by: David Bimmler <david.bimmler@isovalent.com>
96f0af1
to
88fa6d4
Compare
Rebased on master to get the cluster-mesh tests working, was missing the kind setup introduced in #23496. |
/test |
Strangely, the build-push-prs image job timed out even though there are just two commits in the PR. 😕 |
In preparation of moving the datapath module into datapath/cells.go, we need to break import cycles by moving the datapath interface definitions into their own package. Use the existing
datapath/types
package for this, and adjust code and tests everywhere accordingly. Then move the datapath module and associated initialization code to pkg/datapath.The sysctl stuff should most definitely not live top level in
pkg/datapath
, but given this touches a million things, I'd like to keep the functional diff minimal and just move code around.