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 configuration check for env WARM_IP_TARGET and MINIMUM_IP_TARGET #2659

Closed
wants to merge 8 commits into from

Conversation

oliviassss
Copy link
Contributor

@oliviassss oliviassss commented Nov 8, 2023

What type of PR is this?

bug fix
Which issue does this PR fix:

#2650
What does this PR do / Why do we need it:
This PR adds a configuration check on env, if MINIMUM_IP_TARGET is set but WARM_IP_TARGET is not set, it will error out. Also update docs on this change.

Does this PR introduce any user-facing change?:


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

@oliviassss oliviassss requested a review from a team as a code owner November 8, 2023 19:30
README.md Outdated Show resolved Hide resolved
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
@oliviassss
Copy link
Contributor Author

As discussed internally, we decided not to change the default value of WARM_IP_TARGET, as it may cause breaking change to existing users by overriding the env WARM_ENI_TARGET. Instead, we add a configuration check, when MINIMUM_IP_TARGET is defined but WARM_IP_TARGET is not defined, return an error.

@oliviassss oliviassss changed the title change default warm_ip_target to 1 Add configuration check for env WARM_IP_TARGET and MINIMUM_IP_TARGET Nov 9, 2023
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
@oliviassss oliviassss requested a review from jdn5126 November 10, 2023 17:29
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.

Last nits, and then this is good to merge

cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
jdn5126
jdn5126 previously approved these changes Nov 14, 2023
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
cmd/aws-vpc-cni/main.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
Copy link
Contributor

@jayanthvn jayanthvn left a comment

Choose a reason for hiding this comment

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

We can just have WARM ENI and not have WARM IP/MIN IP..might need to make some changes to accommodate that..

@jdn5126
Copy link
Contributor

jdn5126 commented Dec 14, 2023

We can just have WARM ENI and not have WARM IP/MIN IP..might need to make some changes to accommodate that..

That is covered. When MIN IP is set, WARM ENI is ignored, though

jdn5126
jdn5126 previously approved these changes Dec 18, 2023
README.md Outdated Show resolved Hide resolved
utils/utils.go Outdated Show resolved Hide resolved
@jdn5126
Copy link
Contributor

jdn5126 commented Jan 30, 2024

Closing this PR as we have chosen to update the README to call this behavior out instead: https://github.com/aws/amazon-vpc-cni-k8s#minimum_ip_target-v160

@jdn5126 jdn5126 closed this Jan 30, 2024
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