Conversation
makkes
left a comment
There was a problem hiding this comment.
Please update the documentation at docs/spec/.
1b92340 to
239a7c1
Compare
Thank you for your advice |
|
Thanks for submitting this fix. I had a short discussion about this with Hidde, who carried the change that introduced the lookup path value in ed6c6eb, a few weeks ago and he wasn't sure why this field was set to Based on the above, I believe this may have been an unintended change and just using the default would be enough, unless we have good reason to expose this value in Bucket API. As mentioned in #1199, the default auto lookup would fix it for Alibaba Cloud's OSS buckets. We can also verify with AWS that it continues to work with auto lookup. |
|
I also approve use auto lookup, Amazon S3 is planning to deprecation path type https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access |
|
I did some manual testing by changing the BucketLookup to auto in the code and running source-controller against both S3 and a self-hosted minio server with proper DNS in a subdomain with reverse proxy and it worked for both of them. My minio server was not configured with If we find need to configure it in the future, we can add a new field in the Bucket API to make it configurable. source-controller/pkg/minio/minio.go Line 43 in 4deb8cf |
cde92a7 to
d174bff
Compare
|
@zhiyu0729 please rebase with upstream main and force push. |
Signed-off-by: Zhiyu Wang <zhiyuwang.newbis@gmail.com>
|
I have removed |
|
Successfully created backport PR for |
|
Successfully created backport PR for |
Resolves #1199
change default lookup type from
pathtoauto, it may cause the previous butcket configuration to be unavailable, but I thinkautocan cover most cases.