From 680a649a2128aea805e76e1720b4116bae59d1d2 Mon Sep 17 00:00:00 2001 From: "x.zhou" Date: Fri, 9 Jun 2023 16:10:33 +0800 Subject: [PATCH 1/2] Fix the wrong argument for credentials.NewStaticV4() --- pkg/s3/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/s3/client.go b/pkg/s3/client.go index ebb75bf..e720d41 100644 --- a/pkg/s3/client.go +++ b/pkg/s3/client.go @@ -52,7 +52,7 @@ func NewClient(cfg *Config) (*s3Client, error) { endpoint = u.Hostname() + ":" + u.Port() } minioClient, err := minio.New(endpoint, &minio.Options{ - Creds: credentials.NewStaticV4(client.Config.AccessKeyID, client.Config.SecretAccessKey, client.Config.Region), + Creds: credentials.NewStaticV4(client.Config.AccessKeyID, client.Config.SecretAccessKey, ""), Secure: ssl, }) if err != nil { From 37c35c788a5de4605bc482a94d768811d0251f6d Mon Sep 17 00:00:00 2001 From: "x.zhou" Date: Fri, 9 Jun 2023 16:44:40 +0800 Subject: [PATCH 2/2] fix compilation --- pkg/mounter/rclone.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/mounter/rclone.go b/pkg/mounter/rclone.go index 004957b..6ec91c0 100644 --- a/pkg/mounter/rclone.go +++ b/pkg/mounter/rclone.go @@ -2,7 +2,6 @@ package mounter import ( "fmt" - "os" "path" "github.com/yandex-cloud/k8s-csi-s3/pkg/s3"