Chore: use auto bucket lookup type

Signed-off-by: Zhiyu Wang <zhiyuwang.newbis@gmail.com>
This commit is contained in:
Zhiyu Wang 2023-08-31 09:34:54 +00:00 committed by Zhiyu Wang
parent 4deb8cfc15
commit 1ab089e19e
1 changed files with 5 additions and 3 deletions

View File

@ -40,7 +40,9 @@ func NewClient(bucket *sourcev1.Bucket, secret *corev1.Secret) (*MinioClient, er
opt := minio.Options{ opt := minio.Options{
Region: bucket.Spec.Region, Region: bucket.Spec.Region,
Secure: !bucket.Spec.Insecure, Secure: !bucket.Spec.Insecure,
BucketLookup: minio.BucketLookupPath, // About BucketLookup, it should be noted that not all S3 providers support
// path-type access (e.g., Ali OSS). Hence, we revert to using the default
// auto access, which we believe can cover most use cases.
} }
if secret != nil { if secret != nil {