Skip to content

Commit 9cf96e7

Browse files
authored
Merge branch 'master' into feature/czka-node-pool-metadata-key-value-pairs
2 parents 1a6cd1f + eeca20a commit 9cf96e7

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

.kitchen.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ suites:
3131
root_module_directory: test/fixtures/deploy_service
3232
verifier:
3333
name: terraform
34+
color: false
3435
systems:
3536
- name: deploy_service
3637
backend: local
@@ -43,6 +44,7 @@ suites:
4344
root_module_directory: test/fixtures/node_pool
4445
verifier:
4546
name: terraform
47+
color: false
4648
systems:
4749
- name: node_pool
4850
backend: local
@@ -55,6 +57,7 @@ suites:
5557
root_module_directory: test/fixtures/shared_vpc
5658
verifier:
5759
name: terraform
60+
color: false
5861
systems:
5962
- name: shared_vpc
6063
backend: local
@@ -67,6 +70,7 @@ suites:
6770
root_module_directory: test/fixtures/simple_regional
6871
verifier:
6972
name: terraform
73+
color: false
7074
systems:
7175
- name: simple_regional
7276
backend: local
@@ -79,6 +83,7 @@ suites:
7983
root_module_directory: test/fixtures/simple_zonal
8084
verifier:
8185
name: terraform
86+
color: false
8287
systems:
8388
- name: simple_zonal
8489
backend: local
@@ -91,6 +96,7 @@ suites:
9196
root_module_directory: test/fixtures/stub_domains
9297
verifier:
9398
name: terraform
99+
color: false
94100
systems:
95101
- name: stub_domains
96102
backend: local

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ locals {
5151
}
5252

5353
cluster_type_output_regional_zones = "${concat(google_container_cluster.primary.*.additional_zones, list(list()))}"
54-
cluster_type_output_zonal_zones = "${concat(google_container_cluster.zonal_primary.*.additional_zones, list(list()))}"
54+
cluster_type_output_zonal_zones = "${concat(slice(var.zones,1,length(var.zones)), list(list()))}"
5555

5656
cluster_type_output_zones = {
5757
regional = "${local.cluster_type_output_regional_zones[0]}"

test/fixtures/simple_zonal/example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module "example" {
2121
credentials_path = "${local.credentials_path}"
2222
cluster_name_suffix = "-${random_string.suffix.result}"
2323
region = "${var.region}"
24-
zones = ["${var.zones}"]
24+
zones = ["${slice(var.zones,0,1)}"]
2525
network = "${google_compute_network.main.name}"
2626
subnetwork = "${google_compute_subnetwork.main.name}"
2727
ip_range_pods = "${google_compute_subnetwork.main.secondary_ip_range.0.range_name}"

test/integration/simple_zonal/controls/gcloud.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
expect(data['location']).to match(/^(.*)[1-9]-[a-z]$/)
4343
end
4444

45+
it "is single zoned" do
46+
expect(data['locations'].size).to eq 1
47+
end
48+
4549
it "has the expected initial cluster version" do
4650
expect(data['initialClusterVersion']).to eq "1.11.4-gke.13"
4751
end

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ variable "region" {
3939
variable "zones" {
4040
type = "list"
4141
description = "The zones to host the cluster in (optional if regional cluster / required if zonal)"
42-
default = []
42+
default = [""]
4343
}
4444

4545
variable "network" {

0 commit comments

Comments
 (0)