Skip to content

Change the way regions are selected in Gcloud provider

Dan Davison requested to merge qa-gcloud-region-selection-change into master

What does this MR do?

At present, region selection is based on whatever is specified in the GCLOUD_REGION CI variable.

From time-to-time, our kubernetes-ee/ce tests fail due to failure of provisioning. Despite efforts made to alleviate this.

This MR provides two more safeguards:

  1. Choose a random region, not reliant on just us-central1 (whatever is provided through GCLOUD_REGION)
  2. Try twice to provision a cluster in Gcloud.

Notes:

  • If GCLOUD_REGION is specified, it will still favor that region.
  • If GCLOUD_REGION is not specified and it fails once, it will try again with yet another region.

Requirements to merge

Does this MR meet the acceptance criteria?

Conformity

Edited by 🤖 GitLab Bot 🤖

Merge request reports