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" 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 {