Skip to content

Commit

Permalink
Merge branch 'master' into internal/remove-credentials-path
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-lane authored Mar 27, 2019
2 parents 4e8b4b5 + 5dc6786 commit fc43491
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ The root module is generated by running `make generate`. Changes to this reposit
### Requirements
- [bundler](https://github.com/bundler/bundler)
- [gcloud](https://cloud.google.com/sdk/install)
- [terraform-docs](https://github.com/segmentio/terraform-docs/releases) 0.3.0
- [terraform-docs](https://github.com/segmentio/terraform-docs/releases) 0.6.0

### Autogeneration of documentation from .tf files
Run
Expand Down
2 changes: 1 addition & 1 deletion autogen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ The root module is generated by running `make generate`. Changes to this reposit
### Requirements
- [bundler](https://github.com/bundler/bundler)
- [gcloud](https://cloud.google.com/sdk/install)
- [terraform-docs](https://github.com/segmentio/terraform-docs/releases) 0.3.0
- [terraform-docs](https://github.com/segmentio/terraform-docs/releases) 0.6.0

### Autogeneration of documentation from .tf files
Run
Expand Down
4 changes: 1 addition & 3 deletions autogen/cluster_regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ resource "google_container_node_pool" "pools" {
name = "${lookup(var.node_pools[count.index], "name")}"
project = "${var.project_id}"
region = "${var.region}"
cluster = "${var.name}"
cluster = "${google_container_cluster.primary.name}"
version = "${lookup(var.node_pools[count.index], "auto_upgrade", false) ? "" : lookup(var.node_pools[count.index], "version", local.node_version_regional)}"
initial_node_count = "${lookup(var.node_pools[count.index], "initial_node_count", lookup(var.node_pools[count.index], "min_count", 1))}"

Expand Down Expand Up @@ -144,8 +144,6 @@ resource "google_container_node_pool" "pools" {
update = "30m"
delete = "30m"
}

depends_on = ["google_container_cluster.primary"]
}

resource "null_resource" "wait_for_regional_cluster" {
Expand Down
4 changes: 1 addition & 3 deletions autogen/cluster_zonal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ resource "google_container_node_pool" "zonal_pools" {
name = "${lookup(var.node_pools[count.index], "name")}"
project = "${var.project_id}"
zone = "${var.zones[0]}"
cluster = "${var.name}"
cluster = "${google_container_cluster.zonal_primary.name}"
version = "${lookup(var.node_pools[count.index], "auto_upgrade", false) ? "" : lookup(var.node_pools[count.index], "version", local.node_version_zonal)}"
initial_node_count = "${lookup(var.node_pools[count.index], "initial_node_count", lookup(var.node_pools[count.index], "min_count", 1))}"

Expand Down Expand Up @@ -144,8 +144,6 @@ resource "google_container_node_pool" "zonal_pools" {
update = "30m"
delete = "30m"
}

depends_on = ["google_container_cluster.zonal_primary"]
}

resource "null_resource" "wait_for_zonal_cluster" {
Expand Down
4 changes: 1 addition & 3 deletions cluster_regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resource "google_container_node_pool" "pools" {
name = "${lookup(var.node_pools[count.index], "name")}"
project = "${var.project_id}"
region = "${var.region}"
cluster = "${var.name}"
cluster = "${google_container_cluster.primary.name}"
version = "${lookup(var.node_pools[count.index], "auto_upgrade", false) ? "" : lookup(var.node_pools[count.index], "version", local.node_version_regional)}"
initial_node_count = "${lookup(var.node_pools[count.index], "initial_node_count", lookup(var.node_pools[count.index], "min_count", 1))}"

Expand Down Expand Up @@ -137,8 +137,6 @@ resource "google_container_node_pool" "pools" {
update = "30m"
delete = "30m"
}

depends_on = ["google_container_cluster.primary"]
}

resource "null_resource" "wait_for_regional_cluster" {
Expand Down
4 changes: 1 addition & 3 deletions cluster_zonal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resource "google_container_node_pool" "zonal_pools" {
name = "${lookup(var.node_pools[count.index], "name")}"
project = "${var.project_id}"
zone = "${var.zones[0]}"
cluster = "${var.name}"
cluster = "${google_container_cluster.zonal_primary.name}"
version = "${lookup(var.node_pools[count.index], "auto_upgrade", false) ? "" : lookup(var.node_pools[count.index], "version", local.node_version_zonal)}"
initial_node_count = "${lookup(var.node_pools[count.index], "initial_node_count", lookup(var.node_pools[count.index], "min_count", 1))}"

Expand Down Expand Up @@ -137,8 +137,6 @@ resource "google_container_node_pool" "zonal_pools" {
update = "30m"
delete = "30m"
}

depends_on = ["google_container_cluster.zonal_primary"]
}

resource "null_resource" "wait_for_zonal_cluster" {
Expand Down
4 changes: 3 additions & 1 deletion modules/private-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The resources/services/activations/deletions that this module will create/trigge
- Activate network policy if `network_policy` is true
- Add `ip-masq-agent` configmap with provided `non_masquerade_cidrs` if `network_policy` is true

**Note**: You must run Terraform from a VM on the same VPC as your cluster, otherwise there will be issues connecting to the GKE master.

## Usage
There are multiple examples included in the [examples](./examples/) folder but simple usage is as follows:

Expand Down Expand Up @@ -225,7 +227,7 @@ The root module is generated by running `make generate`. Changes to this reposit
### Requirements
- [bundler](https://github.com/bundler/bundler)
- [gcloud](https://cloud.google.com/sdk/install)
- [terraform-docs](https://github.com/segmentio/terraform-docs/releases) 0.3.0
- [terraform-docs](https://github.com/segmentio/terraform-docs/releases) 0.6.0

### Autogeneration of documentation from .tf files
Run
Expand Down

0 comments on commit fc43491

Please sign in to comment.