Skip to content
This repository was archived by the owner on Dec 10, 2021. It is now read-only.

Commit b0f8d24

Browse files
committed
[tests] fix to gke-regional test
1 parent d4d4c71 commit b0f8d24

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

tests/infra/example-gke-nat-gateway-regional/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ variable region {
1818
default = "us-central1"
1919
}
2020

21+
variable zone {
22+
default = "us-central1-a"
23+
}
24+
2125
variable network_name {
2226
default = "tf-ci-nat-gke-regional"
2327
}
@@ -29,7 +33,7 @@ provider google {
2933
}
3034

3135
data "google_container_engine_versions" "default" {
32-
zone = "${element(var.zones, 0)}"
36+
zone = "${var.zone}"
3337
}
3438

3539
resource "google_compute_network" "tf-ci" {

tests/pipelines/tf-nat-gw-pull-requests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
infra_dir: git/tests/infra/example-gke-nat-gateway-regional
104104
region: us-east4
105105
zone: us-east4-c
106+
TF_VAR_zone: us-east4-c
106107
on_failure:
107108
put: git-pull-requests
108109
params:
@@ -123,6 +124,7 @@ jobs:
123124
infra_dir: git/tests/infra/example-gke-nat-gateway-regional
124125
region: us-east4
125126
zone: us-east4-c
127+
TF_VAR_zone: us-east4-c
126128
on_failure:
127129
put: git-pull-requests
128130
params:

tests/pipelines/tf-nat-gw-regression.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
infra_dir: git/tests/infra/example-gke-nat-gateway-regional
9696
region: us-west1
9797
zone: us-west1-b
98+
TF_VAR_zone: us-west1-b
9899
on_failure:
99100
put: send-an-email
100101
params:

0 commit comments

Comments
 (0)