Skip to content
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

🐛 Fixes leftover podref issue #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adilGhaffarDev
Copy link

What this PR does / why we need it:
The function garbageCollectPodIPs was not verifying if a pod was deleted before attempting to perform IPManagement on it. This resulted in failures during leader election due to the pod being deleted, which left behind stale pod references in the IP pools. This pull request addresses that issue by adding a check to verify if the pod is deleted. If the pod is found to be deleted, we now directly remove the leftover pod references instead of processing through the entire IPManagement flow.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #483

Special notes for your reviewer (optional):

Signed-off-by: Muhammad Adil Ghaffar <muhammad.adil.ghaffar@est.tech>
@adilGhaffarDev
Copy link
Author

/cc @dougbtv @s1061123 please check.

@adilGhaffarDev
Copy link
Author

@thomasferrandiz please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Scale down of deployment left pod references undeleted
1 participant