File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,18 @@ func (p *PipelineConfig) getStorageConfig(req egress.UploadRequest) (*StorageCon
5858 sc .S3 .MaxRetries = p .StorageConfig .S3 .MaxRetries
5959 sc .S3 .MaxRetryDelay = p .StorageConfig .S3 .MaxRetryDelay
6060 sc .S3 .MinRetryDelay = p .StorageConfig .S3 .MinRetryDelay
61-
62- if sc .S3 .AssumeRoleArn != "" && sc .S3 .AccessKey == "" {
63- if p .S3AssumeRoleKey != "" {
64- // If an AssummedRole is set but not any AccessKey, default to using the one from conf. This is usefull for uploading to S3
65- // using an external account.
66- sc .S3 .AccessKey = p .S3AssumeRoleKey
67- sc .S3 .Secret = p .S3AssumeRoleSecret
68- } else {
69- return nil , errors .ErrFeatureDisabled ("S3 upload using AssumeRole" )
70- }
61+ }
62+ if sc .S3 .AssumeRoleArn != "" && sc .S3 .AccessKey == "" {
63+ if p .S3AssumeRoleKey != "" {
64+ // If an AssummedRole is set but not any AccessKey, default to using the one from conf. This is usefull for uploading to S3
65+ // using an external account.
66+ sc .S3 .AccessKey = p .S3AssumeRoleKey
67+ sc .S3 .Secret = p .S3AssumeRoleSecret
68+ } else {
69+ return nil , errors .ErrFeatureDisabled ("S3 upload using AssumeRole" )
7170 }
7271 }
72+
7373 if s3 .Proxy != nil {
7474 sc .S3 .ProxyConfig = & storage.ProxyConfig {
7575 Url : s3 .Proxy .Url ,
You can’t perform that action at this time.
0 commit comments