Merge pull request #60 from zjx20/fix/wrong-arg

Fix the wrong argument for credentials.NewStaticV4()
This commit is contained in:
Vitaliy Filippov 2023-06-15 16:01:47 +03:00 committed by GitHub
commit 8539ff0a48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -2,7 +2,6 @@ package mounter
import ( import (
"fmt" "fmt"
"os"
"path" "path"
"github.com/yandex-cloud/k8s-csi-s3/pkg/s3" "github.com/yandex-cloud/k8s-csi-s3/pkg/s3"

View file

@ -52,7 +52,7 @@ func NewClient(cfg *Config) (*s3Client, error) {
endpoint = u.Hostname() + ":" + u.Port() endpoint = u.Hostname() + ":" + u.Port()
} }
minioClient, err := minio.New(endpoint, &minio.Options{ 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, Secure: ssl,
}) })
if err != nil { if err != nil {