mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-10 06:57:26 +00:00
Merge pull request #6565 from kaovilai/s3profilefix-1.10
GetS3Credentials pass profile from config to NewSharedCredentials
This commit is contained in:
1
changelogs/unreleased/6565-kaovilai
Normal file
1
changelogs/unreleased/6565-kaovilai
Normal file
@@ -0,0 +1 @@
|
||||
Non default s3 credential profiles work on Unified Repository Provider (kopia)
|
||||
@@ -64,7 +64,7 @@ func GetS3Credentials(config map[string]string) (credentials.Value, error) {
|
||||
return credentials.Value{}, errors.New("missing credential file")
|
||||
}
|
||||
|
||||
creds := credentials.NewSharedCredentials(credentialsFile, "")
|
||||
creds := credentials.NewSharedCredentials(credentialsFile, config[awsProfileKey])
|
||||
credValue, err := creds.Get()
|
||||
if err != nil {
|
||||
return credValue, err
|
||||
|
||||
Reference in New Issue
Block a user