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

[CIDRPool 3/x] update ipam-node to support CIDRPool #44

Merged
merged 6 commits into from
Jun 13, 2024

Conversation

ykulazhenkov
Copy link
Collaborator

@ykulazhenkov ykulazhenkov commented Jun 11, 2024

This PR contains the following changes:

  • update CNI API to support poolType argument
  • update GRPC API to support poolType argument
  • rename internal IPPool structure to Pool and make it generic
  • make poolmanage/store code generic (mostly by renaming) to be compatible with both pool types
  • update ipam-node allocator package to support CIDRPool use-case: ip address exclusion, /31 and /127 prefixes

@coveralls
Copy link

Coverage Status

coverage: 70.796% (-1.3%) from 72.083%
when pulling 918cbe0 on ykulazhenkov:pr-cidr-pool-node
into 18fc6a0 on Mellanox:main.

@coveralls
Copy link

Coverage Status

coverage: 70.796% (+0.3%) from 70.538%
when pulling 0bba118 on ykulazhenkov:pr-cidr-pool-node
into 3ddd30f on Mellanox:main.

@ykulazhenkov ykulazhenkov changed the title [CIDRPool 4/x] update ipam-node to support CIDRPool [CIDRPool 3/x] update ipam-node to support CIDRPool Jun 11, 2024
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
This argument is required to indicate
type of the pool (IPPool, CIDRPool) which
is referred  by the pool field.

Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
@coveralls
Copy link

Coverage Status

coverage: 70.081% (+0.08%) from 70.0%
when pulling 9b0b6f6 on ykulazhenkov:pr-cidr-pool-node
into 9531cf5 on Mellanox:main.

api/grpc/proto/nvidia/ipam/node/v1/node.proto Show resolved Hide resolved
Comment on lines +19 to +20
// to avoid migration of the store, and to support downgrade
return poolName
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

pkg/ip/cidr.go Show resolved Hide resolved
pkg/ipam-node/controllers/cidrpool/cidrpool.go Outdated Show resolved Hide resolved
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
@ykulazhenkov
Copy link
Collaborator Author

Thanks for the review @vasrem. I addressed your comments.

@coveralls
Copy link

Coverage Status

coverage: 68.731% (-1.3%) from 70.0%
when pulling cdcd33f on ykulazhenkov:pr-cidr-pool-node
into 9531cf5 on Mellanox:main.

@ykulazhenkov ykulazhenkov requested a review from vasrem June 12, 2024 10:27
Copy link
Member

@rollandf rollandf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ykulazhenkov ykulazhenkov merged commit 8642f37 into Mellanox:main Jun 13, 2024
9 checks passed
@ykulazhenkov ykulazhenkov deleted the pr-cidr-pool-node branch June 13, 2024 10:53
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.

4 participants