-
Notifications
You must be signed in to change notification settings - Fork 220
Bug 1866299: Adds support for GovCloud endpoints #441
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
Bug 1866299: Adds support for GovCloud endpoints #441
Conversation
|
@danehans: This pull request references Bugzilla bug 1866299, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/bugzilla refresh |
|
@danehans: This pull request references Bugzilla bug 1866299, which is valid. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test e2e-aws-upgrade |
| return true | ||
| } | ||
| } | ||
| default: |
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.
When exactly is this default case hit? When case ep.Name == ELBService:?
Could you add a unit test to cover it, if you don't mind?
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.
ELBService is correct. Yes, I'll add a unit test.
pkg/dns/aws/dns.go
Outdated
| // https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-endpoints.html | ||
| // does not specify a tagging endpoint. I suspect tagging has the same behavior as the | ||
| // standard tagging endpoint (requires east-1 due to Route 53 hosted zone lookup). | ||
| tagConfig = tagConfig.WithRegion(endpoints.UsGovEast1RegionID) |
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.
Is there any way to verify that this suspicion is correct before we merge these changes? Or do you plan on verifying this after this PR merges?
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.
@sgreene570 I'm going to push a new commit that removes the limitation and ask QE to confirm.
7d04bf9 to
4223cf9
Compare
/test e2e-aws-operator |
4223cf9 to
07c1694
Compare
| // Route53 for GovCloud uses the "us-gov" region id: | ||
| // https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-endpoints.html | ||
| r53Config = r53Config.WithRegion(govCloudRoute53Region) | ||
| tagConfig = tagConfig.WithRegion(region) |
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.
Note that I have not implemented the same tagging api region restrictions as standard aws since the govcloud service endpoints doc does not specify the tagging api. The PR needs to merge so @yunjiang29 can verify against aws govcloud.
|
Looks good! /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danehans, sgreene570 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@danehans: All pull requests linked via external trackers have merged: Bugzilla bug 1866299 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
A follow-on to #433. Based upon these docs, GovCloud does provide a specific Route 53 endpoint. This PR updates
NewProvider()to set the GovCloud Route 53 and Tagging endpoints and validates custom endpoint url's.