Skip to content

Commit

Permalink
chore: switch region for gpu quota (#1138)
Browse files Browse the repository at this point in the history
* chore: switch region for gpu quota

* fix test to interpolate location
  • Loading branch information
bharathkkb authored Jan 31, 2022
1 parent e6b9282 commit 073f1fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/node_pool/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ module "example" {

project_id = var.project_ids[0]
cluster_name_suffix = "-${random_string.suffix.result}"
region = var.region
zones = slice(var.zones, 0, 1)
region = "europe-west4"
zones = ["europe-west4-a"]
network = google_compute_network.main.name
subnetwork = google_compute_subnetwork.main.name
ip_range_pods = google_compute_subnetwork.main.secondary_ip_range[0].range_name
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/node_pool/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "google_compute_network" "main" {
resource "google_compute_subnetwork" "main" {
name = "cft-gke-test-${random_string.suffix.result}"
ip_cidr_range = "10.0.0.0/17"
region = var.region
region = "europe-west4"
network = google_compute_network.main.self_link

secondary_ip_range {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/node_pool/controls/gcloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@
including(
"name" => "pool-03",
"locations" => match_array([
"us-central1-b",
"us-central1-c",
"#{location}-b",
"#{location}-c",
]),
)
)
Expand Down

0 comments on commit 073f1fe

Please sign in to comment.