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

Add support for additional CNI arguments: ips, poolNames, poolType, allocateDefaultGateway #45

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

ykulazhenkov
Copy link
Collaborator

Depends on #44

Last 5 commits to review.

The PR contains the following changes:

  • add support for static IP, supported methods: ENV var CNI_ARGS (IP key), STDIN args[cni][ips], STDIN runtimeConfig[ips]
  • add support for passing poolNames and pooType in STDIN args[cni] (required to be able to inject values from multus annotaion)
  • add support for STDIN args[cni] allocateDefaultGateway flag. When CNI is called with this flag, the plugin
    will try to allocate IP address of the pool's
    default gateway as interface IP for the container

Documentation for the features will be submitted in a separate PR.

@coveralls
Copy link

Coverage Status

coverage: 69.598% (-0.4%) from 70.0%
when pulling 5996fff on ykulazhenkov:pr-cni-args
into 9531cf5 on Mellanox:main.

Supported options:
STDIN runtimeConfig[ips]
STDIN args[cni][ips]
CNI_ARGS env variable, IP 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>
add `allocateDefaultGateway` flag to cni-args that
activates the special behaviour.
When CNI is called with this flag, the plugin
will try to allocate IP address of the pool's
default gateway  as interface IP for the cotnainer.
@coveralls
Copy link

Coverage Status

coverage: 69.514% (+0.9%) from 68.645%
when pulling 3917ecc on ykulazhenkov:pr-cni-args
into 24b9875 on Mellanox:main.

@ykulazhenkov ykulazhenkov merged commit 755beb9 into Mellanox:main Jun 14, 2024
9 checks passed
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