-
Notifications
You must be signed in to change notification settings - Fork 72
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
Upgrade GetBucketRegion to aws-sdk-go-v2 #1470
Upgrade GetBucketRegion to aws-sdk-go-v2 #1470
Conversation
TODO: Move CloudStorageAPI for aws to aws-sdk-go-v2 |
uhoh unit test |
the ValidateBSL unit test' bucket does work in s3_test.go so I think might be same issue we're hitting elsewhere? |
FWIW the same suite test works locally
|
be32d26
to
8f1be57
Compare
glad we tested this in the scrum lolz 0/ |
/retest |
This comment was marked as resolved.
This comment was marked as resolved.
TODO: use credentials to query region on non-public buckets |
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.
thanks @kaovilai
FYI the PR in velero is practically similar to this except that they use real credentials. I do not think it is urgent or practical to do so as far as unit test goes.. but we can implement this in the prod env as a follow up. Benefit to real creds as opposed to anonymous is it can list bucket regions for private buckets. |
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.
/lgtm
Signed-off-by: Tiger Kaovilai <[email protected]> Load anonymous credentials when GetBucketRegion Signed-off-by: Tiger Kaovilai <[email protected]> Try setting region in LoadDefaultConfig Signed-off-by: Tiger Kaovilai <[email protected]> more debug Signed-off-by: Tiger Kaovilai <[email protected]> return err from aws Signed-off-by: Tiger Kaovilai <[email protected]> debug Signed-off-by: Tiger Kaovilai <[email protected]>
bcaadda
8f1be57
to
bcaadda
Compare
Signed-off-by: Tiger Kaovilai <[email protected]>
/unhold updated PR description |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kaovilai, mateusoliveira43, mrnold, shubham-pampattiwar 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 |
/lgtm |
@kaovilai: 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-sigs/prow repository. I understand the commands that are listed here. |
Signed-off-by: Tiger Kaovilai [email protected]
Why the changes were made
To test that aws-sdk-go-v2 upgrade in aws plugin did not break bucket discovery to debug #1451 failures.
How to test the changes made
Followup