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
use alternate IAM endpoints if specified #184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, is it feasible to unit test or excessively difficult?
The best I could think of was to put some test cases to cover that we're processing the contents of the Infrastructure object correctly. Once we receive the awsClient object, I don't see a way to inspect the client to see what the connection settings are for it. |
Ok that's reasonable. /lgtm |
/test unit |
/test images |
/test e2e-aws |
@dgoodwin this should be good to go now. I can squash and re-push once you've had a look. |
Looks good, squash away. |
/lgtm |
tide Pending — Not mergeable. Needs bugzilla/valid-bug label. |
did all the supporting work this to work finally make it in time for 4.5 (and we need an exception for this)? or can this wait? |
Need conflicts resolved here @joelddiaz |
@sjenning fyi, i did mess with your oidc controller a bit to get this working. Not thrilled with having to add a controller-runtime.Client dependency on it, WDYT? |
/test e2e-aws-upgrade |
Respect the cluster's serviceEndpoints specified in the Infrastructure object when building up a client to interact with AWS. If the IAM service endpoint is specified, use it. Extend oidcdiscoveryendpoint controller to have a controller-runtime Client to simplify building AWS clients.
@dgoodwin FYI, rebased to fix merge conflicts. no functional changes. |
/test e2e-aws |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgoodwin, joelddiaz 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
Search through the cluster's Infrastructure object to see if an alternate IAM endpoint is specified, and use it when creating the AWS client.