From 3ee72536ba8c09c8b85f720377115a4378d7080f Mon Sep 17 00:00:00 2001 From: Bohdan Yurov Date: Thu, 24 Oct 2019 19:15:32 +0200 Subject: [PATCH] Fixes #261: Invalid plan when re-applying terraform module https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/261 Bumbed minimal provider version to 2.17 --- autogen/versions.tf | 10 ++++++++++ .../beta-private-cluster-update-variant/versions.tf | 4 ++++ modules/beta-private-cluster/versions.tf | 4 ++++ modules/beta-public-cluster/versions.tf | 4 ++++ modules/private-cluster-update-variant/versions.tf | 4 ++++ modules/private-cluster/versions.tf | 4 ++++ versions.tf | 4 ++++ 7 files changed, 34 insertions(+) diff --git a/autogen/versions.tf b/autogen/versions.tf index 832ec1df39..523239b223 100644 --- a/autogen/versions.tf +++ b/autogen/versions.tf @@ -17,3 +17,13 @@ terraform { required_version = ">= 0.12" } + +{% if beta_cluster %} +provider "google-beta" { + version = "~> 2.17.0" +} +{% else %} +provider "google" { + version = "~> 2.17.0" +} +{% endif %} diff --git a/modules/beta-private-cluster-update-variant/versions.tf b/modules/beta-private-cluster-update-variant/versions.tf index 832ec1df39..d5d8444010 100644 --- a/modules/beta-private-cluster-update-variant/versions.tf +++ b/modules/beta-private-cluster-update-variant/versions.tf @@ -17,3 +17,7 @@ terraform { required_version = ">= 0.12" } + +provider "google-beta" { + version = "~> 2.17.0" +} diff --git a/modules/beta-private-cluster/versions.tf b/modules/beta-private-cluster/versions.tf index 832ec1df39..d5d8444010 100644 --- a/modules/beta-private-cluster/versions.tf +++ b/modules/beta-private-cluster/versions.tf @@ -17,3 +17,7 @@ terraform { required_version = ">= 0.12" } + +provider "google-beta" { + version = "~> 2.17.0" +} diff --git a/modules/beta-public-cluster/versions.tf b/modules/beta-public-cluster/versions.tf index 832ec1df39..d5d8444010 100644 --- a/modules/beta-public-cluster/versions.tf +++ b/modules/beta-public-cluster/versions.tf @@ -17,3 +17,7 @@ terraform { required_version = ">= 0.12" } + +provider "google-beta" { + version = "~> 2.17.0" +} diff --git a/modules/private-cluster-update-variant/versions.tf b/modules/private-cluster-update-variant/versions.tf index 832ec1df39..0936923a84 100644 --- a/modules/private-cluster-update-variant/versions.tf +++ b/modules/private-cluster-update-variant/versions.tf @@ -17,3 +17,7 @@ terraform { required_version = ">= 0.12" } + +provider "google" { + version = "~> 2.17.0" +} diff --git a/modules/private-cluster/versions.tf b/modules/private-cluster/versions.tf index 832ec1df39..0936923a84 100644 --- a/modules/private-cluster/versions.tf +++ b/modules/private-cluster/versions.tf @@ -17,3 +17,7 @@ terraform { required_version = ">= 0.12" } + +provider "google" { + version = "~> 2.17.0" +} diff --git a/versions.tf b/versions.tf index 832ec1df39..0936923a84 100644 --- a/versions.tf +++ b/versions.tf @@ -17,3 +17,7 @@ terraform { required_version = ">= 0.12" } + +provider "google" { + version = "~> 2.17.0" +}