diff --git a/pkg/steps/clusterinstall/template.go b/pkg/steps/clusterinstall/template.go index a1c23b4a2d2..cec1eca6a2d 100644 --- a/pkg/steps/clusterinstall/template.go +++ b/pkg/steps/clusterinstall/template.go @@ -311,7 +311,9 @@ objects: export KUBE_SSH_USER=core mkdir -p ~/.ssh cp /tmp/cluster/ssh-privatekey ~/.ssh/google_compute_engine || true - export TEST_PROVIDER='{"type":"gce","region":"us-east1","multizone": true,"multimaster":true,"projectid":"openshift-gce-devel-ci"}' + # TODO: make openshift-tests auto-discover this from cluster config + REGION="$(oc get -o jsonpath='{.status.platformStatus.gcp.region}' infrastructure cluster)" + export TEST_PROVIDER="{\"type\":\"gce\",\"region\":\"${REGION}\",\"multizone\": true,\"multimaster\":true,\"projectid\":\"openshift-gce-devel-ci\"}" elif [[ "${CLUSTER_TYPE}" == "aws" ]]; then mkdir -p ~/.ssh cp /tmp/cluster/ssh-privatekey ~/.ssh/kube_aws_rsa || true