-
Notifications
You must be signed in to change notification settings - Fork 124
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
[POC] lease lock per IP pool #314
base: master
Are you sure you want to change the base?
[POC] lease lock per IP pool #314
Conversation
This is a POC level code for changing lease/leaderElection usage by whereabouts from a global lease to a per pool lease. Signed-off-by: adrianc <[email protected]>
1191229
to
79e1f1d
Compare
I'd say this makes sense without looking in detail ! Please be patient while we sort this out. If you can, please rebase and ensure the tests are passing. @xagent003 could you review ? |
} | ||
|
||
defer func() { | ||
if err != nil { |
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.
I dont think this will ever be hit? It only happens if err != nil but all previous conditions check for err != nil and continue or return.
Is there a reason for this defer func() at all? It does exactly the same as what was previously done above
@@ -557,14 +592,6 @@ func IPManagementKubernetesUpdate(ctx context.Context, mode int, ipam *Kubernete | |||
break RETRYLOOP | |||
} | |||
|
|||
if ipamConf.OverlappingRanges { |
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.
Can you clarify why this change was made - the code is common but was added back tot he Allocate and Deallocate case statements. Now the same code is duplicated in each case. Did this fix some other issue or optimization?
Hi @maiqueb I reviewed. the lease lock change looks good, but I'd like to understand the other change for moving around the overlappingranges code. BTW we tested out this code and it does appear to improve performance. |
@adrianchiris could you split this change to another commit and explain its goal in the commit msg ?
Thank you @xagent003 . I really appreciate your help. |
Hey @maiqueb, ATM i have no bandwidth to work on this unfortunately. |
This is a POC level code for changing lease/leaderElection usage by whereabouts from a global lease to a per pool lease.
What this PR does / why we need it:
This PR is related to #313 and is used as additional context on the potential changes proposed.