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 resolver to handle custom endpoints #1398

Merged

Conversation

bertinatto
Copy link
Member

Currently, setting the AWS_EC2_ENDPOINT environment variable overwrites the STS endpoint as well. This patch adds a custom resolver to only set a custom endpoint in EC2 service.

Is this a bug fix or adding new feature?

This should fix #1122.

What is this PR about? / Why do we need it?

What testing is done?

Manual tested in a cluster with custom endpoints and STS.

Currently, setting the AWS_EC2_ENDPOINT environment variable
overwrites the STS endpoint as well. This patch adds a custom
resolver to only set a custom endpoint on EC2 service.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 22, 2022
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 22, 2022
@bertinatto
Copy link
Member Author

/assign @gnufied @wongma7

@gnufied
Copy link
Contributor

gnufied commented Sep 22, 2022

lgtm but lets wait for @wongma7 input as well.

/lgtm
/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Sep 22, 2022
@torredil
Copy link
Member

/retest

Copy link
Contributor

@ConnorJC3 ConnorJC3 left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bertinatto, ConnorJC3

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gnufied
Copy link
Contributor

gnufied commented Sep 22, 2022

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 22, 2022
@k8s-ci-robot k8s-ci-robot merged commit b62940a into kubernetes-sigs:master Sep 22, 2022
@wongma7
Copy link
Contributor

wongma7 commented Sep 22, 2022

/lgtm
(retroactive)
thx team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS_EC2_ENDPOINT overrides the STS endpoint and breaks IRSA
6 participants