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 support for route53 in the us-isob-east-1 region + fix #754

Merged
merged 3 commits into from
May 9, 2022

Conversation

r4f4
Copy link
Contributor

@r4f4 r4f4 commented May 4, 2022

This PR is just #703 with the requested fix implemented.

@openshift-ci openshift-ci bot requested review from candita and knobunc May 4, 2022 12:32
@r4f4
Copy link
Contributor Author

r4f4 commented May 4, 2022

CC @rfredette for review

@@ -142,26 +142,31 @@ func NewProvider(config Config, operatorReleaseVersion string) (*Provider, error
elbConfig := aws.NewConfig().WithRegion(region)
tagConfig := aws.NewConfig()

partition, ok := endpoints.PartitionForRegion(endpoints.DefaultPartitions(), region)
if !ok {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure but did you check if partition would be nil if ok is false? The switch case would throw error in that case since it's a function call with nil reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rna-afk thanks for the review! Yes, I checked the code for PartitionForRegion in the SDK and an empty struct is returned in case of error https://github.com/aws/aws-sdk-go/blob/v1.44.6/aws/endpoints/endpoints.go#L384-L392. So it should be safe to call ID() on it, which will result in an empty string.

@rfredette
Copy link
Contributor

thanks!
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 5, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 5, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: r4f4, rfredette

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 5, 2022
@mjpytlak
Copy link

mjpytlak commented May 5, 2022

Providing doc ack. No doc is required for this PR.

@patrickdillon
Copy link
Contributor

We have the buy in from dos, qe, and px. Furthermore, as we are (currently) a FF team, I should be able to apply these labels myself:

/label docs-approved
/label qe-approved
/label px-approved

@openshift-ci openshift-ci bot added docs-approved Signifies that Docs has signed off on this PR qe-approved Signifies that QE has signed off on this PR px-approved Signifies that Product Support has signed off on this PR labels May 8, 2022
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 9, 2022

@r4f4: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit a633126 into openshift:master May 9, 2022
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. docs-approved Signifies that Docs has signed off on this PR lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants