Skip to content

Commit 580d383

Browse files
authored
Merge pull request #510 from zylxjtu/northEurope
Temp remove north Europe from the region list
2 parents 8aaef56 + 6fc82a2 commit 580d383

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

capz/run-capz-e2e.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ create_cluster(){
197197
log "AKS Capacity Error, retrying"
198198
az group delete --name "${CLUSTER_NAME}" --no-wait -y || true
199199
# reset location and name
200-
export AZURE_LOCATION="${AZURE_LOCATION:-$(capz::util::get_random_region)}"
200+
export AZURE_LOCATION="${AZURE_LOCATION:-$(get_random_region)}"
201201
export CLUSTER_NAME="${CLUSTER_NAME:-capz-conf-$(head /dev/urandom | LC_ALL=C tr -dc a-z0-9 | head -c 6 ; echo '')}"
202202
az group create --name "${CLUSTER_NAME}" --location "$AZURE_LOCATION" --tags creationTimestamp="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
203203
output=$(az aks create \
@@ -569,7 +569,8 @@ log() {
569569

570570
# all test regions must support AvailabilityZones
571571
get_random_region() {
572-
local REGIONS=("australiaeast" "canadacentral" "francecentral" "germanywestcentral" "northeurope" "switzerlandnorth" "uksouth")
572+
# temp remove northEurope as there are capacity related issue
573+
local REGIONS=("australiaeast" "canadacentral" "francecentral" "germanywestcentral" "switzerlandnorth" "uksouth")
573574
echo "${REGIONS[${RANDOM} % ${#REGIONS[@]}]}"
574575
}
575576

0 commit comments

Comments
 (0)