-
Notifications
You must be signed in to change notification settings - Fork 127
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
Return previous IP allocation for add cmd #471
Return previous IP allocation for add cmd #471
Conversation
mlguerrero12
commented
May 15, 2024
•
edited
Loading
edited
- This allows the cni to return a previous allocation for a pod with the same podRef and interface name. This is needed on networks with limited IPs.
- A new property called Interface was added on the API in order to uniquely identify allocations for pods with multiple interfaces.
- Testing was improved and new cases (multiple interfaces and reclaim previous allocations) are added.
- New field does not break backwards compatibility. Users that wish to solve the issue of limited ip reservations in statefulsets will have to recreate the pods to have this new field populated.
09439c6
to
e57f5d9
Compare
Signed-off-by: Marcelo Guerrero <[email protected]>
Signed-off-by: Marcelo Guerrero <[email protected]>
e57f5d9
to
01105cf
Compare
Pull Request Test Coverage Report for Build 9402269686Details
💛 - Coveralls |
@mlguerrero12 I can't find the code for updating the existing IP allocation records. Did you take care of that in this PR? |
pkg/api/whereabouts.cni.cncf.io/v1alpha1/overlappingrangeipreservation_types.go
Outdated
Show resolved
Hide resolved
This is needed in order to uniquely identify allocations for pods with multiple interfaces. These allocations have the same podRef. Signed-off-by: Marcelo Guerrero <[email protected]>
Support the new Interface property on IP and cluster wide allocations. Signed-off-by: Marcelo Guerrero <[email protected]>
This allows to validate the lifecycle of allocations for single and multiple interfaces pods. Signed-off-by: Marcelo Guerrero <[email protected]>
This allows the cni to return a previous allocation for a pod with the same podRef and interface name. This is needed on networks with limited IPs. Signed-off-by: Marcelo Guerrero <[email protected]>
No, I decided not to add this functionality. It will be more overhead for little gain in my opinion. Everything will continue working, so it does not break backwards compatibility. Users that wish to solve the issue of limited ip reservations in statefulsets will have to recreate the pods to have this new field populated. |
01105cf
to
b3a0025
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.
Thank you a TON!!!