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 AWS_EC2_ENDPOINT variable for custom endpoint (#2317) #2326

Merged
merged 5 commits into from
Mar 28, 2023

Conversation

jihunseol
Copy link
Contributor

What type of PR is this?

feature

Which issue does this PR fix:

#2317

What does this PR do / Why do we need it:

This PR enables the usage of a custom endpoint for AWS API requests by reading the 'AWS_EC2_ENDPOINT' environment variable. This feature is particularly useful for testing environments that are compatible with the AWS API.

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

Testing done on this change:

Manually verified that kubernetes cluster version 1.25.6 on testing environment.

Automation added to e2e:

N/A

Will this PR introduce any new dependencies?:

No

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

Enable to configure a custom endpoint for EC2 service

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

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.

Thanks for making this change @jihunseol ! Can you also add an entry in README.md and a small unit-test similar to the original PR? For the README, you can set the version introduced as "v1.13.0+".

Also, can you confirm that you built your own image and tested on k8s 1.25?

@jihunseol
Copy link
Contributor Author

jihunseol commented Mar 22, 2023

Sure, I will add an entry in README.md and unit-test also. And I can confirm that latest master image with PR is tested and worked on k8s 1.25.

README.md Outdated Show resolved Hide resolved
pkg/awsutils/awssession/session.go Outdated Show resolved Hide resolved
jdn5126
jdn5126 previously approved these changes Mar 27, 2023
@jdn5126
Copy link
Contributor

jdn5126 commented Mar 27, 2023

@jihunseol thanks for the help here! I approved, rebased, and kicked off testing. I'll merge after the tests pass

@jdn5126 jdn5126 merged commit 10dfa1a into aws:master Mar 28, 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.

2 participants