mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #25619 from skrassiev/bug/aws_invalid_endpoint_24020
Automatic merge from submit-queue Fixed 'Invalid endpoint: https://ec2.us-east-.amazonaws.com'. #24420 #24420 Addresses: - https://github.com/kubernetes/kubernetes/issues/24020 - https://github.com/kubernetes/kubernetes/issues/24420
This commit is contained in:
commit
1cba05574b
@ -95,7 +95,12 @@ source "${KUBE_ROOT}/cluster/aws/${OS_DISTRIBUTION}/util.sh"
|
|||||||
load_distro_utils
|
load_distro_utils
|
||||||
|
|
||||||
# This removes the final character in bash (somehow)
|
# This removes the final character in bash (somehow)
|
||||||
|
re='[a-zA-Z]'
|
||||||
|
if [[ ${ZONE: -1} =~ $re ]]; then
|
||||||
AWS_REGION=${ZONE%?}
|
AWS_REGION=${ZONE%?}
|
||||||
|
else
|
||||||
|
AWS_REGION=$ZONE
|
||||||
|
fi
|
||||||
|
|
||||||
export AWS_DEFAULT_REGION=${AWS_REGION}
|
export AWS_DEFAULT_REGION=${AWS_REGION}
|
||||||
export AWS_DEFAULT_OUTPUT=text
|
export AWS_DEFAULT_OUTPUT=text
|
||||||
|
Loading…
Reference in New Issue
Block a user