-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
br: fix S3 backup endpoint suffix / #30144
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
After you have format title, you can leave a comment |
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
After you have format title, you can leave a comment |
@@ -189,6 +189,7 @@ func (options *S3BackendOptions) parseFromFlags(flags *pflag.FlagSet) error { | |||
if err != nil { | |||
return errors.Trace(err) | |||
} | |||
options.Endpoint = strings.Trim(options.Endpoint, "/") |
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.
options.Endpoint = strings.Trim(options.Endpoint, "/") | |
options.Endpoint = strings.TrimSuffix(options.Endpoint, "/") |
@@ -15,22 +15,21 @@ | |||
package ddl_test | |||
|
|||
import ( | |||
"github.com/stretchr/testify/require" |
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.
[2021-11-30T08:07:27.397Z] ddl/options_test.go:18: File is not `goimports`-ed (goimports)
[2021-11-30T08:07:27.397Z] "github.com/stretchr/testify/require"
let's not do the test-infra migration in this PR.
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.
ok
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.
Here we try to get flag s3.endpoint, what if -s "s3://bank/shenma-without-stats?access-key=admin&secret-access-key=Passadmin&endpoint=http://minio.pingcap.net:9000/&force-path-style=true"
@tongtongyin: PR needs rebase. 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 resubmitted a PR and closed the current one |
What problem does this PR solve?
Issue Number: close #30128
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note