Skip to content

Commit

Permalink
Add support for regional GKE clusters in google_container_cluster (ha…
Browse files Browse the repository at this point in the history
…shicorp#1181)

* Add support for regional GKE clusters in google_container_cluster:

* implement operation wait for v1beta1 api
* implement container clusters get for regional clusters
* implement container clusters delete for regional cluster
* implement container clusters update for regional cluster
* simplify logic by using generic 'location' instead of 'zone' and 'region'
* implement a method to generate the update function and refactor
* rebase and fix

* reorder container_operation fns

* cleanup

* add import support and docs

* additional locations cleanup
  • Loading branch information
ashish-amarnath authored and danawillow committed Apr 5, 2018
1 parent 1a60210 commit 93a3bd5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/r/container_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ output "cluster_ca_certificate" {
- - -

* `zone` - (Optional) The zone that the master and the number of nodes specified
in `initial_node_count` should be created in.
in `initial_node_count` should be created in. Only one of `zone` and `region`
may be set. If neither zone nor region are set, the provider zone is used.

* `region` (Optional, [Beta](/docs/providers/google/index.html#beta-features))
The region to create the cluster in, for
[Regional Clusters](https://cloud.google.com/kubernetes-engine/docs/concepts/multi-zone-and-regional-clusters#regional).

* `additional_zones` - (Optional) The list of additional Google Compute Engine
locations in which the cluster's nodes should be located. If additional zones are
Expand Down Expand Up @@ -377,7 +382,7 @@ exported:

## Import

GKE clusters can be imported using the `project` , `zone`, and `name`. If
GKE clusters can be imported using the `project` , `zone` or `region`, and `name`. If
the project is omitted, the default provider value will be used. Examples:

```
Expand Down

0 comments on commit 93a3bd5

Please sign in to comment.