Skip to content

Commit

Permalink
drop west europe do to re-occuring capacity issues
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
  • Loading branch information
jsturtevant committed Jul 16, 2024
1 parent 2fa68f7 commit e2ba843
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions capz/run-capz-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ set_azure_envs() {
# Generate SSH key.
capz::util::generate_ssh_key

export AZURE_LOCATION="${AZURE_LOCATION:-$(capz::util::get_random_region)}"

AZURE_LOCATION=$(get_random_region)
export AZURE_LOCATION
if [[ "${CI:-}" == "true" ]]; then
# we don't provide an ssh key in ci so it is created.
# the ssh code in the logger and gmsa configuration
Expand All @@ -496,6 +496,12 @@ log() {
echo "$(date -R): $msg"
}

# all test regions must support AvailabilityZones
get_random_region() {
local REGIONS=("canadacentral" "eastus" "eastus2" "northeurope" "uksouth" "westus2" "westus3")
echo "${REGIONS[${RANDOM} % ${#REGIONS[@]}]}"
}

set_ci_version() {
# select correct windows version for tests
if [[ "$(capz::util::should_build_kubernetes)" == "true" ]]; then
Expand Down

0 comments on commit e2ba843

Please sign in to comment.