File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
571571get_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
You can’t perform that action at this time.
0 commit comments