Skip to content

Commit 4424b49

Browse files
committed
Add reference to migration guide and regenerate
1 parent f86942a commit 4424b49

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

README.md

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

92+
## Upgrade to v2.0.0
93+
94+
v2.0.0 is a breaking release. Refer to the
95+
[Upgrading to v2.0 guide][upgrading-to-v2.0] for details.
96+
9297
## Upgrade to v1.0.0
9398

9499
Version 1.0.0 of this module introduces a breaking change: adding the `disable-legacy-endpoints` metadata field to all node pools. This metadata is required by GKE and [determines whether the `/0.1/` and `/v1beta1/` paths are available in the nodes' metadata server](https://cloud.google.com/kubernetes-engine/docs/how-to/protecting-cluster-metadata#disable-legacy-apis). If your applications do not require access to the node's metadata server, you can leave the default value of `true` provided by the module. If your applications require access to the metadata server, be sure to read the linked documentation to see if you need to set the value for this field to `false` to allow your applications access to the above metadata server paths.
@@ -339,3 +344,5 @@ is a compiled language so there is no standard linter.
339344
* Terraform - terraform has a built-in linter in the 'terraform validate'
340345
command.
341346
* Dockerfiles - hadolint. Can be found in homebrew
347+
348+
[upgrading-to-v2.0]: docs/upgrading_to_v2.0.md

autogen/README.md

Lines changed: 11 additions & 0 deletions
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 v2.0.0
103+
104+
v2.0.0 is a breaking release. Refer to the
105+
[Upgrading to v2.0 guide][upgrading-to-v2.0] for details.
106+
102107
## Upgrade to v1.0.0
103108

104109
Version 1.0.0 of this module introduces a breaking change: adding the `disable-legacy-endpoints` metadata field to all node pools. This metadata is required by GKE and [determines whether the `/0.1/` and `/v1beta1/` paths are available in the nodes' metadata server](https://cloud.google.com/kubernetes-engine/docs/how-to/protecting-cluster-metadata#disable-legacy-apis). If your applications do not require access to the node's metadata server, you can leave the default value of `true` provided by the module. If your applications require access to the metadata server, be sure to read the linked documentation to see if you need to set the value for this field to `false` to allow your applications access to the above metadata server paths.
@@ -290,3 +295,9 @@ is a compiled language so there is no standard linter.
290295
* Terraform - terraform has a built-in linter in the 'terraform validate'
291296
command.
292297
* Dockerfiles - hadolint. Can be found in homebrew
298+
299+
{% if private_cluster %}
300+
[upgrading-to-v2.0]: ../../docs/upgrading_to_v2.0.md
301+
{% else %}
302+
[upgrading-to-v2.0]: docs/upgrading_to_v2.0.md
303+
{% endif %}

main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ data "google_container_engine_versions" "zone" {
161161
//
162162
// data.google_container_engine_versions.zone: Cannot determine zone: set in this resource, or set provider-level zone.
163163
//
164-
zone = "${var.zones[0] == "" ? data.google_compute_zones.available.names[0] : var.zones[0]}"
165-
project = "${var.project_id}"
166-
}
164+
zone = "${var.zones[0] == "" ? data.google_compute_zones.available.names[0] : var.zones[0]}"
165+
166+
project = "${var.project_id}"
167+
}

modules/private-cluster/README.md

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

97+
## Upgrade to v2.0.0
98+
99+
v2.0.0 is a breaking release. Refer to the
100+
[Upgrading to v2.0 guide][upgrading-to-v2.0] for details.
101+
97102
## Upgrade to v1.0.0
98103

99104
Version 1.0.0 of this module introduces a breaking change: adding the `disable-legacy-endpoints` metadata field to all node pools. This metadata is required by GKE and [determines whether the `/0.1/` and `/v1beta1/` paths are available in the nodes' metadata server](https://cloud.google.com/kubernetes-engine/docs/how-to/protecting-cluster-metadata#disable-legacy-apis). If your applications do not require access to the node's metadata server, you can leave the default value of `true` provided by the module. If your applications require access to the metadata server, be sure to read the linked documentation to see if you need to set the value for this field to `false` to allow your applications access to the above metadata server paths.
@@ -347,3 +352,5 @@ is a compiled language so there is no standard linter.
347352
* Terraform - terraform has a built-in linter in the 'terraform validate'
348353
command.
349354
* Dockerfiles - hadolint. Can be found in homebrew
355+
356+
[upgrading-to-v2.0]: ../../docs/upgrading_to_v2.0.md

modules/private-cluster/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ data "google_container_engine_versions" "zone" {
161161
//
162162
// data.google_container_engine_versions.zone: Cannot determine zone: set in this resource, or set provider-level zone.
163163
//
164-
zone = "${var.zones[0] == "" ? data.google_compute_zones.available.names[0] : var.zones[0]}"
165-
project = "${var.project_id}"
166-
}
164+
zone = "${var.zones[0] == "" ? data.google_compute_zones.available.names[0] : var.zones[0]}"
165+
166+
project = "${var.project_id}"
167+
}

0 commit comments

Comments
 (0)