Skip to content

Add support for s3 accelerate in runner cache

What does this MR do?

It allows people to setup an s3-accelerate endpoint in runner cache configuration

Why was this MR needed?

The minio client can not be configured with an s3-accelerate.amazonaws.com endpoint directly. If such an endpoint is set, it detects it as an Amazon endpoint because of this regexp but fails to extract the region and falls back on the default s3.dualstack.us-east-1.amazonaws.com endpoint when building the resquest host here

The preferred way according to minio, is to use the SetS3TransferAccelerate method on the client after creating it with the usual s3.amazonaws.com endpoint.

What's the best way to test this MR?

Try to set the ServerAddress to s3-accelerate.amazonaws.com in a runner configuration

What are the relevant issue numbers?

#26790

Edited by ArtyMaury

Merge request reports