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

Support for no_manage=false #1607

Merged
merged 2 commits into from
Sep 11, 2021
Merged

Support for no_manage=false #1607

merged 2 commits into from
Sep 11, 2021

Conversation

jayanthvn
Copy link
Contributor

What type of PR is this?
Enhancement

Which issue does this PR fix:
Certain use cases need to use only specific ENIs for pod IPs similar to allow and deny list. Currently we support no_manage = true tag but certain use cases need no_manage=false.

What does this PR do / Why do we need it:
no_manage=false will take precedence and will be considered for pod IP allocation and If MANAGE_UNTAGGED_ENI = false is set then any untagged ENIs will be marked as unmanaged by IPAMD and will not be considered for pod IP allocation.

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

Testing done on this change:

yes.
Automation added to e2e:

Will update in a follow up PR.

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.

@jayanthvn jayanthvn added this to the v1.9.1 milestone Sep 10, 2021
Copy link
Contributor

@M00nF1sh M00nF1sh left a comment

Choose a reason for hiding this comment

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

/lgtm
let's add some UT for this function.

@jayanthvn
Copy link
Contributor Author

Yes, I am working on the UTs PR. Will send a follow up tonight.

@jayanthvn jayanthvn merged commit 509abfa into aws:master Sep 11, 2021
jayanthvn added a commit to jayanthvn/amazon-vpc-cni-k8s that referenced this pull request Sep 11, 2021
* Support for no_manage=false

* pr comments
jayanthvn added a commit to jayanthvn/amazon-vpc-cni-k8s that referenced this pull request Sep 11, 2021
jayanthvn added a commit that referenced this pull request Sep 11, 2021
* Support for no_manage=false (#1607)

* Support for no_manage=false

* pr comments

* cherry-pick #1585 and #1607
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.

2 participants