-
Notifications
You must be signed in to change notification settings - Fork 188
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
bucket: Use auto lookup type #1211
Conversation
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.
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 <[email protected]>
I have removed |
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
Thanks @zhiyu0729
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!
Thanks.
Successfully created backport PR for |
Successfully created backport PR for |
Resolves #1199
change default lookup type from
path
toauto
, it may cause the previous butcket configuration to be unavailable, but I thinkauto
can cover most cases.