Skip to content

Commit 27d46c6

Browse files
committed
Fix format of autogen files
1 parent 6e65371 commit 27d46c6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

autogen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,4 @@ command.
308308
[upgrading-to-v2.0]: ../../docs/upgrading_to_v2.0.md
309309
{% else %}
310310
[upgrading-to-v2.0]: docs/upgrading_to_v2.0.md
311-
{% endif %}
311+
{% endif %}

autogen/cluster_regional.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ resource "google_container_cluster" "primary" {
2626
description = "${var.description}"
2727
project = "${var.project_id}"
2828

29-
region = "${var.region}"
30-
node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"]
29+
region = "${var.region}"
30+
node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"]
3131

3232
network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}"
3333
subnetwork = "${replace(data.google_compute_subnetwork.gke_subnetwork.self_link, "https://www.googleapis.com/compute/v1/", "")}"
@@ -94,12 +94,14 @@ resource "google_container_cluster" "primary" {
9494
}
9595
}
9696
{% if private_cluster %}
97+
9798
private_cluster_config {
9899
enable_private_endpoint = "${var.enable_private_endpoint}"
99100
enable_private_nodes = "${var.enable_private_nodes}"
100101
master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}"
101102
}
102103
{% endif %}
104+
103105
remove_default_node_pool = "${var.remove_default_node_pool}"
104106
}
105107

autogen/cluster_zonal.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ resource "google_container_cluster" "zonal_primary" {
2626
description = "${var.description}"
2727
project = "${var.project_id}"
2828

29-
zone = "${var.zones[0]}"
30-
node_locations = ["${slice(var.zones,1,length(var.zones))}"]
29+
zone = "${var.zones[0]}"
30+
node_locations = ["${slice(var.zones,1,length(var.zones))}"]
3131

3232
network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}"
3333
subnetwork = "${replace(data.google_compute_subnetwork.gke_subnetwork.self_link, "https://www.googleapis.com/compute/v1/", "")}"
@@ -94,12 +94,14 @@ resource "google_container_cluster" "zonal_primary" {
9494
}
9595
}
9696
{% if private_cluster %}
97+
9798
private_cluster_config {
9899
enable_private_endpoint = "${var.enable_private_endpoint}"
99100
enable_private_nodes = "${var.enable_private_nodes}"
100101
master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}"
101102
}
102103
{% endif %}
104+
103105
remove_default_node_pool = "${var.remove_default_node_pool}"
104106
}
105107

0 commit comments

Comments
 (0)