enhance: Use virtual host for tencent cloud (#30650)

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
pull/30689/head
cai.zhang 2024-02-20 14:08:51 +08:00 committed by GitHub
parent a556671119
commit 77ba3ce3f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ func newMinioClient(ctx context.Context, c *config) (*minio.Client, error) {
creds = credentials.NewStaticV2(c.accessKeyID, c.secretAccessKeyID, "")
}
case CloudProviderTencent:
bucketLookupType = minio.BucketLookupDNS
newMinioFn = tencent.NewMinioClient
if !c.useIAM {
creds = credentials.NewStaticV4(c.accessKeyID, c.secretAccessKeyID, "")