Skip to content

Commit

Permalink
Fixes terraform-google-modules#261: Invalid plan when re-applying ter…
Browse files Browse the repository at this point in the history
…raform module

terraform-google-modules#261

Bumbed minimal provider version to 2.18
  • Loading branch information
bohdanyurov-gl committed Oct 28, 2019
1 parent adf341e commit df58572
Show file tree
Hide file tree
Showing 25 changed files with 53 additions and 37 deletions.
10 changes: 10 additions & 0 deletions autogen/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@
terraform {
required_version = ">= 0.12"
}

{% if beta_cluster %}
provider "google-beta" {
version = "~> 2.18.0"
}
{% else %}
provider "google" {
version = "~> 2.18.0"
}
{% endif %}
3 changes: 1 addition & 2 deletions examples/deploy_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

provider "kubernetes" {
Expand Down
3 changes: 1 addition & 2 deletions examples/disable_client_cert/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
3 changes: 1 addition & 2 deletions examples/node_pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google-beta" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
3 changes: 1 addition & 2 deletions examples/node_pool_update_variant/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

data "google_compute_subnetwork" "subnetwork" {
Expand Down
2 changes: 1 addition & 1 deletion examples/node_pool_update_variant_beta/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ locals {
}

provider "google-beta" {
version = "~> 2.12.0"
version = "~> 2.18.0"
credentials = file(var.credentials_path)
region = var.region
}
Expand Down
3 changes: 1 addition & 2 deletions examples/shared_vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
3 changes: 1 addition & 2 deletions examples/simple_regional/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_regional_beta/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ locals {
}

provider "google-beta" {
version = "~> 2.12.0"
version = "~> 2.18.0"
credentials = file(var.credentials_path)
region = var.region
}
Expand Down
3 changes: 1 addition & 2 deletions examples/simple_regional_private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

data "google_compute_subnetwork" "subnetwork" {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_regional_private_beta/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ locals {
}

provider "google-beta" {
version = "~> 2.12.0"
version = "~> 2.18.0"
credentials = file(var.credentials_path)
region = var.region
}
Expand Down
3 changes: 1 addition & 2 deletions examples/simple_zonal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
3 changes: 1 addition & 2 deletions examples/simple_zonal_private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

data "google_compute_subnetwork" "subnetwork" {
Expand Down
3 changes: 1 addition & 2 deletions examples/stub_domains/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
7 changes: 1 addition & 6 deletions examples/stub_domains_private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
*/

provider "google" {
version = "~> 2.12.0"
region = var.region
}

provider "random" {
version = "~> 2.1"
region = var.region
}

data "google_compute_subnetwork" "subnetwork" {
Expand Down
3 changes: 1 addition & 2 deletions examples/stub_domains_upstream_nameservers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
3 changes: 1 addition & 2 deletions examples/upstream_nameservers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

module "gke" {
Expand Down
3 changes: 1 addition & 2 deletions examples/workload_metadata_config/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ locals {
}

provider "google-beta" {
version = "~> 2.12.0"
region = var.region
region = var.region
}

data "google_compute_subnetwork" "subnetwork" {
Expand Down
4 changes: 4 additions & 0 deletions modules/beta-private-cluster-update-variant/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google-beta" {
version = "~> 2.18.0"
}
4 changes: 4 additions & 0 deletions modules/beta-private-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google-beta" {
version = "~> 2.18.0"
}
4 changes: 4 additions & 0 deletions modules/beta-public-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google-beta" {
version = "~> 2.18.0"
}
4 changes: 4 additions & 0 deletions modules/private-cluster-update-variant/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google" {
version = "~> 2.18.0"
}
4 changes: 4 additions & 0 deletions modules/private-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google" {
version = "~> 2.18.0"
}
4 changes: 2 additions & 2 deletions test/setup/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ terraform {
}

provider "google" {
version = "~> 2.13.0"
version = "~> 2.18.0"
}

provider "google-beta" {
version = "~> 2.13.0"
version = "~> 2.18.0"
}
4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google" {
version = "~> 2.18.0"
}

0 comments on commit df58572

Please sign in to comment.