Skip to content

Commit 321eabe

Browse files
committed
Regenerate modules
1 parent 15f8e40 commit 321eabe

File tree

18 files changed

+49
-13
lines changed

18 files changed

+49
-13
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ Then perform the following commands on the root folder:
9797
- `terraform apply` to apply the infrastructure build
9898
- `terraform destroy` to destroy the built infrastructure
9999

100+
## Upgrade to v3.0.0
101+
102+
v3.0.0 is a breaking release. Refer to the
103+
[Upgrading to v3.0 guide][upgrading-to-v3.0] for details.
104+
100105
## Upgrade to v2.0.0
101106

102107
v2.0.0 is a breaking release. Refer to the
@@ -367,3 +372,5 @@ command.
367372
* Dockerfiles - hadolint. Can be found in homebrew
368373

369374
[upgrading-to-v2.0]: docs/upgrading_to_v2.0.md
375+
[upgrading-to-v3.0]: docs/upgrading_to_v3.0.md
376+
[terraform-provider-google]: https://github.com/terraform-providers/terraform-provider-google

cluster_zonal.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ resource "google_container_cluster" "zonal_primary" {
3838
logging_service = "${var.logging_service}"
3939
monitoring_service = "${var.monitoring_service}"
4040

41-
4241
master_authorized_networks_config = ["${var.master_authorized_networks_config}"]
4342

4443
master_auth {

dns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ resource "kubernetes_config_map" "kube-dns-upstream-nameservers-and-stub-domains
9090
upstreamNameservers = <<EOF
9191
${jsonencode(var.upstream_nameservers)}
9292
EOF
93+
9394
stubDomains = <<EOF
9495
${jsonencode(var.stub_domains)}
9596
EOF

modules/beta-private-cluster/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ Then perform the following commands on the root folder:
104104
- `terraform apply` to apply the infrastructure build
105105
- `terraform destroy` to destroy the built infrastructure
106106

107+
## Upgrade to v3.0.0
108+
109+
v3.0.0 is a breaking release. Refer to the
110+
[Upgrading to v3.0 guide][upgrading-to-v3.0] for details.
111+
107112
## Upgrade to v2.0.0
108113

109114
v2.0.0 is a breaking release. Refer to the
@@ -219,7 +224,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
219224
- [kubectl](https://github.com/kubernetes/kubernetes/releases) 1.9.x
220225
#### Terraform and Plugins
221226
- [Terraform](https://www.terraform.io/downloads.html) 0.11.x
222-
- [terraform-provider-google-beta](https://github.com/terraform-providers/terraform-provider-google-beta) v2.3, v2.6, v2.9
227+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v2.9
223228

224229
### Configure a Service Account
225230
In order to execute this module you must have a Service Account with the
@@ -387,3 +392,5 @@ command.
387392
* Dockerfiles - hadolint. Can be found in homebrew
388393

389394
[upgrading-to-v2.0]: ../../docs/upgrading_to_v2.0.md
395+
[upgrading-to-v3.0]: ../../docs/upgrading_to_v3.0.md
396+
[terraform-provider-google-beta]: https://github.com/terraform-providers/terraform-provider-google-beta

modules/beta-private-cluster/cluster_regional.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ resource "google_container_cluster" "primary" {
102102

103103
node_config {
104104
service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}"
105+
105106
workload_metadata_config = "${local.cluster_node_metadata_config["${var.node_metadata == "UNSPECIFIED" ? "unspecified" : "specified"}"]}"
106107
}
107108
}

modules/beta-private-cluster/cluster_zonal.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ resource "google_container_cluster" "zonal_primary" {
3838
logging_service = "${var.logging_service}"
3939
monitoring_service = "${var.monitoring_service}"
4040

41-
enable_binary_authorization = "${var.enable_binary_authorization}"
42-
pod_security_policy_config = "${var.pod_security_policy_config}"
41+
enable_binary_authorization = "${var.enable_binary_authorization}"
42+
pod_security_policy_config = "${var.pod_security_policy_config}"
4343

4444
master_authorized_networks_config = ["${var.master_authorized_networks_config}"]
4545

@@ -103,6 +103,7 @@ resource "google_container_cluster" "zonal_primary" {
103103

104104
node_config {
105105
service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}"
106+
106107
workload_metadata_config = "${local.cluster_node_metadata_config["${var.node_metadata == "UNSPECIFIED" ? "unspecified" : "specified"}"]}"
107108
}
108109
}

modules/beta-private-cluster/dns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ resource "kubernetes_config_map" "kube-dns-upstream-nameservers-and-stub-domains
9090
upstreamNameservers = <<EOF
9191
${jsonencode(var.upstream_nameservers)}
9292
EOF
93+
9394
stubDomains = <<EOF
9495
${jsonencode(var.stub_domains)}
9596
EOF

modules/beta-private-cluster/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ locals {
192192
cluster_horizontal_pod_autoscaling_enabled = "${local.cluster_type_output_horizontal_pod_autoscaling_enabled[local.cluster_type] ? false : true}"
193193
cluster_kubernetes_dashboard_enabled = "${local.cluster_type_output_kubernetes_dashboard_enabled[local.cluster_type] ? false : true}"
194194
# BETA features
195-
cluster_istio_enabled = "${local.cluster_type_output_istio_enabled[local.cluster_type] ? false : true}"
196-
cluster_cloudrun_enabled = "${var.cloudrun}"
195+
cluster_istio_enabled = "${local.cluster_type_output_istio_enabled[local.cluster_type] ? false : true}"
196+
cluster_cloudrun_enabled = "${var.cloudrun}"
197197
cluster_pod_security_policy_enabled = "${local.cluster_type_output_pod_security_policy_enabled[local.cluster_type] ? true : false}"
198198

199199
# /BETA features

modules/beta-private-cluster/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ output "service_account" {
112112
description = "The service account to default running nodes as if not overridden in `node_pools`."
113113
value = "${local.service_account}"
114114
}
115+
115116
output "istio_enabled" {
116117
description = "Whether Istio is enabled"
117118
value = "${local.cluster_istio_enabled}"

modules/beta-public-cluster/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ Then perform the following commands on the root folder:
9999
- `terraform apply` to apply the infrastructure build
100100
- `terraform destroy` to destroy the built infrastructure
101101

102+
## Upgrade to v3.0.0
103+
104+
v3.0.0 is a breaking release. Refer to the
105+
[Upgrading to v3.0 guide][upgrading-to-v3.0] for details.
106+
102107
## Upgrade to v2.0.0
103108

104109
v2.0.0 is a breaking release. Refer to the
@@ -210,7 +215,7 @@ The [project factory](https://github.com/terraform-google-modules/terraform-goog
210215
- [kubectl](https://github.com/kubernetes/kubernetes/releases) 1.9.x
211216
#### Terraform and Plugins
212217
- [Terraform](https://www.terraform.io/downloads.html) 0.11.x
213-
- [terraform-provider-google-beta](https://github.com/terraform-providers/terraform-provider-google-beta) v2.3, v2.6, v2.9
218+
- [Terraform Provider for GCP Beta][terraform-provider-google-beta] v2.9
214219

215220
### Configure a Service Account
216221
In order to execute this module you must have a Service Account with the
@@ -378,3 +383,5 @@ command.
378383
* Dockerfiles - hadolint. Can be found in homebrew
379384

380385
[upgrading-to-v2.0]: docs/upgrading_to_v2.0.md
386+
[upgrading-to-v3.0]: ../../docs/upgrading_to_v3.0.md
387+
[terraform-provider-google-beta]: https://github.com/terraform-providers/terraform-provider-google-beta

0 commit comments

Comments
 (0)