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(){
197
197
log " AKS Capacity Error, retrying"
198
198
az group delete --name " ${CLUSTER_NAME} " --no-wait -y || true
199
199
# reset location and name
200
- export AZURE_LOCATION=" ${AZURE_LOCATION:- $(capz :: util :: get_random_region)} "
200
+ export AZURE_LOCATION=" ${AZURE_LOCATION:- $(get_random_region)} "
201
201
export CLUSTER_NAME=" ${CLUSTER_NAME:- capz-conf-$(head / dev/ urandom | LC_ALL=C tr -dc a-z0-9 | head -c 6 ; echo ' ' )} "
202
202
az group create --name " ${CLUSTER_NAME} " --location " $AZURE_LOCATION " --tags creationTimestamp=" $( date -u ' +%Y-%m-%dT%H:%M:%SZ' ) "
203
203
output=$( az aks create \
@@ -569,7 +569,8 @@ log() {
569
569
570
570
# all test regions must support AvailabilityZones
571
571
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" )
573
574
echo " ${REGIONS[${RANDOM} % ${#REGIONS[@]} ]}"
574
575
}
575
576
You can’t perform that action at this time.
0 commit comments