Skip to content

Refactor AllocENI #2640

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

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Refactor AllocENI #2640

merged 1 commit into from
Nov 7, 2023

Conversation

jchen6585
Copy link
Contributor

@jchen6585 jchen6585 commented Oct 31, 2023

What type of PR is this?
enhancement

Which issue does this PR fix:
N/A

What does this PR do / Why do we need it:
Reduces the number of API calls made when creating an ENI and allocating IP addresses. Combines AllocENI and AllocIpAddresses into one API call.

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:

Testing done on this change:

Manually tested against custom networking, cni, and ipv6 integration suites.
Screenshot 2023-11-06 at 1 24 56 PM
Screenshot 2023-11-06 at 11 50 41 AM
Screenshot 2023-11-06 at 12 19 36 PM

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades? Has updating a running cluster been tested?:
No

Does this change require updates to the CNI daemonset config files to work?:

No

Does this PR introduce any user-facing change?:

No


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jchen6585 jchen6585 requested a review from a team as a code owner October 31, 2023 20:07
Copy link
Contributor

@jdn5126 jdn5126 left a comment

Choose a reason for hiding this comment

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

Refactor overall looks good to me, but yeah we will need unit test coverage for this

@jayanthvn
Copy link
Contributor

Can you please run Ipv6, V4- PD and custom networking tests..

@jchen6585
Copy link
Contributor Author

Can you please run Ipv6, V4- PD and custom networking tests..

all suites passed

@jdn5126 jdn5126 merged commit 1c22e4d into aws:multi-subnet Nov 7, 2023
jchen6585 added a commit that referenced this pull request Nov 7, 2023
jchen6585 added a commit that referenced this pull request Nov 7, 2023
jdn5126 pushed a commit to jdn5126/amazon-vpc-cni-k8s that referenced this pull request Nov 14, 2023
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.

3 participants