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

Fix pod watch namespace for nv-ipam-node #37

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

ykulazhenkov
Copy link
Collaborator

@ykulazhenkov ykulazhenkov commented Mar 19, 2024

Before the fix, nv-ipam-node was watching only for Pods in the namespace provided by --ippools-namespace arg. This is incorrect and cause "stale IP cleaner" to work incorrectly.

Watch Pods in all namespaces instead.

+ Add extra check to the cleaner to check Pod in the API (in addition to the cache)
before decide to cleanup the stale allocation.

Before the fix,  nv-ipam-node was watching only for Pods in the namespace provided by `-- ippools-namespace` arg. This is incorrect and cause "stale IP cleaner" to work incorrectly.

Watch Pods in all namespaces instead.

Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Add extra check to the cleaner to validate API (in addition to the cache)
before decide to cleanup the stale allocation.

Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
@ykulazhenkov ykulazhenkov changed the title Fxi pod watch namespace for nv-ipam-node Fix pod watch namespace for nv-ipam-node Mar 19, 2024
@coveralls
Copy link

Coverage Status

coverage: 72.057% (+0.02%) from 72.033%
when pulling 1e29014 on ykulazhenkov:pr-fix-pod-watch-for-node
into 9e198a9 on Mellanox:main.

@ykulazhenkov ykulazhenkov merged commit a34b4a2 into Mellanox:main Mar 19, 2024
7 checks passed
@ykulazhenkov ykulazhenkov deleted the pr-fix-pod-watch-for-node branch June 11, 2024 06:43
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.

None yet

3 participants