Skip to content

Commit

Permalink
feat: update TPG version constraints to allow 4.0 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-foundation-bot authored Dec 20, 2021
1 parent 67c3d62 commit 15bbce5
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 35 deletions.
4 changes: 0 additions & 4 deletions examples/dataproc_profile/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

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

data "google_client_config" "current" {
}

Expand Down
12 changes: 11 additions & 1 deletion examples/dataproc_profile/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
cdap = {
source = "GoogleCloudPlatform/cdap"
version = "~> 0.9.0"
}
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
}
4 changes: 0 additions & 4 deletions examples/hub_artifact/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

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

data "google_client_config" "current" {
}

Expand Down
13 changes: 13 additions & 0 deletions examples/hub_artifact/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
terraform {
required_providers {
cdap = {
source = "GoogleCloudPlatform/cdap"
version = "~> 0.9.0"
}
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
required_version = ">= 0.13"
}
4 changes: 0 additions & 4 deletions examples/namespace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

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

data "google_client_config" "current" {}

provider "cdap" {
Expand Down
12 changes: 11 additions & 1 deletion examples/namespace/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
cdap = {
source = "GoogleCloudPlatform/cdap"
version = "~> 0.9.0"
}
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/dataproc_profile/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/hub_artifact/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/namespace/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/private_network/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down
4 changes: 2 additions & 2 deletions modules/wait_healthy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down
4 changes: 0 additions & 4 deletions test/fixtures/simple_example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

provider "random" {
version = "~> 2.0"
}

resource "random_pet" "main" {
length = 1
prefix = "simple-example"
Expand Down
8 changes: 7 additions & 1 deletion test/fixtures/simple_example/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
random = {
source = "hashicorp/random"
version = "~> 2.0"
}
}
}
20 changes: 11 additions & 9 deletions test/setup/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
*/

terraform {
required_version = ">= 0.12"
}

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

provider "google-beta" {
version = "~> 3.53.0"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.53.0"
}
}
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down

0 comments on commit 15bbce5

Please sign in to comment.