Skip to content

Commit 073f1fe

Browse files
authored
chore: switch region for gpu quota (#1138)
* chore: switch region for gpu quota * fix test to interpolate location
1 parent e6b9282 commit 073f1fe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/fixtures/node_pool/example.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module "example" {
1919

2020
project_id = var.project_ids[0]
2121
cluster_name_suffix = "-${random_string.suffix.result}"
22-
region = var.region
23-
zones = slice(var.zones, 0, 1)
22+
region = "europe-west4"
23+
zones = ["europe-west4-a"]
2424
network = google_compute_network.main.name
2525
subnetwork = google_compute_subnetwork.main.name
2626
ip_range_pods = google_compute_subnetwork.main.secondary_ip_range[0].range_name

test/fixtures/node_pool/network.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resource "google_compute_network" "main" {
3232
resource "google_compute_subnetwork" "main" {
3333
name = "cft-gke-test-${random_string.suffix.result}"
3434
ip_cidr_range = "10.0.0.0/17"
35-
region = var.region
35+
region = "europe-west4"
3636
network = google_compute_network.main.self_link
3737

3838
secondary_ip_range {

test/integration/node_pool/controls/gcloud.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@
514514
including(
515515
"name" => "pool-03",
516516
"locations" => match_array([
517-
"us-central1-b",
518-
"us-central1-c",
517+
"#{location}-b",
518+
"#{location}-c",
519519
]),
520520
)
521521
)

0 commit comments

Comments
 (0)