From 923ed3328b3026123b5c80810d89af5a57bc8413 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 11 Dec 2020 08:56:31 -0800 Subject: [PATCH] Revert "ci-operator/step-registry/ipi/conf/azure: Get region from Boskos lease" --- .../ipi/conf/azure/ipi-conf-azure-commands.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh b/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh index df82d95c4cd19..f480a8f7a9bec 100755 --- a/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh +++ b/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh @@ -6,8 +6,18 @@ set -o pipefail CONFIG="${SHARED_DIR}/install-config.yaml" -REGION="${LEASED_RESOURCE}" -echo "Azure region: ${REGION}" +case $((RANDOM % 8)) in +0) AZURE_REGION=centralus;; +1) AZURE_REGION=centralus;; +2) AZURE_REGION=centralus;; +3) AZURE_REGION=centralus;; +4) AZURE_REGION=centralus;; +5) AZURE_REGION=centralus;; +6) AZURE_REGION=eastus2;; +7) AZURE_REGION=westus;; +*) echo >&2 "invalid Azure region index"; exit 1;; +esac +echo "Azure region: ${AZURE_REGION}" cat >> "${CONFIG}" << EOF baseDomain: ci.azure.devcluster.openshift.com @@ -19,5 +29,5 @@ compute: platform: azure: baseDomainResourceGroupName: os4-common - region: ${REGION} + region: ${AZURE_REGION} EOF