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
Move github.com/cilium/ipam packages to main repo #25289
Conversation
/test |
4574364
to
1d06ec9
Compare
/test |
2e90303
to
7c2cc13
Compare
/test |
7c2cc13
to
ef38d1d
Compare
/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.
Thanks for splitting it into multiple commits. Very easy to review!
/test-runtime #25291 https://jenkins.cilium.io/job/Cilium-PR-Runtime-net-next/6575/ Job 'Cilium-PR-K8s-1.26-kernel-net-next' failed: Click to show.Test Name
Failure Output
Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.26-kernel-net-next/2192/ If it is a flake and a GitHub issue doesn't already exist to track it, comment Then please upload the Jenkins artifacts to that issue. |
/test-1.26-net-next |
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.
Vendor changes lgtm 🎉
In order to be able to assign the return value of NewSafeRand to a typed variable or a struct member, the type needs to be exported. This will be needed in a successive commit. Signed-off-by: Tobias Klauser <tobias@cilium.io>
We want to retain the k8s author copyright notice for these files. Signed-off-by: Tobias Klauser <tobias@cilium.io>
Instead of keeping a separate repo for these packages move them to the main cilium repo which makes this easier to maintain and iterate on. The code was originally forked from k8s.io/kubernetes/pkg/registry/core/service and has since been extended and changed to fit Cilium's needs. This is a copy of the github.com/cilium/ipam repo at commit cilium/ipam@fd66eae This corresponds to the version that is currently vendored. Additionally, the test files are copied and unnecessry BUILD files (stemming from upstream k8s) were removed. Some modifications to the lock and rand types used within the packages needed to be made: * Use mutex types from pkg/lock for deadlock detection * Use pkg/rand for concurrency safe PRNG * Change the license/copyright format in file headers to conform to Cilium project requirements. Otherwise linters would complain about the use of the Go stdlib types. Signed-off-by: Tobias Klauser <tobias@cilium.io>
ef38d1d
to
60a769e
Compare
/test |
First 3 commits are preparatory to update the vendored package, allow use of Cilium's concurrency-safe PRNG type in the new package and allow k8s authors in file header copyright notices.
The fourth commit moves the packages. Quoting the commit message: