mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Merge pull request #6215 from justinsb/fix_s3_us_classic
Fix S3 location handling for US classic
This commit is contained in:
commit
51128251f1
@ -238,8 +238,8 @@ function upload-server-tars() {
|
||||
|
||||
local s3_bucket_location=$(aws --output text s3api get-bucket-location --bucket ${AWS_S3_BUCKET})
|
||||
local s3_url_base=https://s3-${s3_bucket_location}.amazonaws.com
|
||||
if [[ "${s3_bucket_location}" == "us-east-1" ]]; then
|
||||
# us-east-1 does not follow the pattern
|
||||
if [[ "${s3_bucket_location}" == "None" ]]; then
|
||||
# "US Classic" does not follow the pattern
|
||||
s3_url_base=https://s3.amazonaws.com
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user