Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/major-terraform-google-provider-…
Browse files Browse the repository at this point in the history
…v6' into do-not-create-secrets
  • Loading branch information
daniel-cit committed Oct 23, 2024
2 parents f80dcf5 + c84ebd6 commit 96b8afc
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 27 deletions.
5 changes: 2 additions & 3 deletions examples/cloudbuild_repo_connection_github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
*/

module "github_connection" {
# source = "terraform-google-modules/bootstrap/google//modules/cloudbuild_repo_connection"
# version = "~> 8.0"
source = "../../modules/cloudbuild_repo_connection"
source = "terraform-google-modules/bootstrap/google//modules/cloudbuild_repo_connection"
version = "~> 9.0"

project_id = var.project_id
connection_config = {
Expand Down
2 changes: 1 addition & 1 deletion examples/im_cloudbuild_workspace_github/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/im_cloudbuild_workspace_gitlab/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/tf_cloudbuild_builder_simple/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/tf_cloudbuild_builder_simple_github/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/tf_cloudbuild_builder_simple_gitlab/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/tf_cloudbuild_workspace_simple/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/tf_cloudbuild_workspace_simple_github/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/tf_cloudbuild_workspace_simple_gitlab/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module "enabled_google_apis" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 15.0"
version = "~> 17.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
4 changes: 2 additions & 2 deletions modules/cloudbuild/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ terraform {
google = {
source = "hashicorp/google"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 3.50, != 4.31.0, <6"
version = ">= 3.50, != 4.31.0, <7"
}
google-beta = {
source = "hashicorp/google-beta"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 3.50, != 4.31.0, <6"
version = ">= 3.50, != 4.31.0, <7"
}
random = {
source = "hashicorp/random"
Expand Down
4 changes: 2 additions & 2 deletions modules/im_cloudbuild_workspace/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ terraform {
google = {
source = "hashicorp/google"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 4.17, != 4.31.0, < 6"
version = ">= 4.17, != 4.31.0, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 4.17, != 4.31.0, < 6"
version = ">= 4.17, != 4.31.0, < 7"
}
random = {
source = "hashicorp/random"
Expand Down
2 changes: 1 addition & 1 deletion modules/tf_cloudbuild_builder/cb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ resource "google_project_iam_member" "logs_writer" {
# https://cloud.google.com/build/docs/securing-builds/store-manage-build-logs#store-custom-bucket
module "bucket" {
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
version = "~> 6.0"
version = "~> 7.0"

name = local.log_bucket_name
project_id = var.project_id
Expand Down
4 changes: 2 additions & 2 deletions modules/tf_cloudbuild_builder/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ terraform {
google = {
source = "hashicorp/google"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 3.50, != 4.31.0, < 6"
version = ">= 3.50, != 4.31.0, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 3.50, != 4.31.0, < 6"
version = ">= 3.50, != 4.31.0, < 7"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/tf_cloudbuild_source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module "cloudbuild_project" {
// Creating the bucket beforehand make it is possible to define a custom location.
module "cloudbuild_bucket" {
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
version = "~> 6.0"
version = "~> 7.0"

name = "${module.cloudbuild_project.project_id}_cloudbuild"
project_id = module.cloudbuild_project.project_id
Expand Down
4 changes: 2 additions & 2 deletions modules/tf_cloudbuild_source/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ terraform {
google = {
source = "hashicorp/google"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 3.50, != 4.31.0, < 6"
version = ">= 3.50, != 4.31.0, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 3.50, != 4.31.0, < 6"
version = ">= 3.50, != 4.31.0, < 7"
}
}

Expand Down
6 changes: 3 additions & 3 deletions modules/tf_cloudbuild_workspace/buckets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ locals {

module "artifacts_bucket" {
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
version = "~> 6.0"
version = "~> 7.0"

name = var.artifacts_bucket_name != "" ? var.artifacts_bucket_name : "${local.default_prefix}-build-artifacts-${var.project_id}"
project_id = var.project_id
Expand All @@ -45,7 +45,7 @@ resource "google_storage_bucket_iam_member" "artifacts_admin" {

module "log_bucket" {
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
version = "~> 6.0"
version = "~> 7.0"

name = var.log_bucket_name != "" ? var.log_bucket_name : "${local.default_prefix}-build-logs-${var.project_id}"
project_id = var.project_id
Expand All @@ -62,7 +62,7 @@ resource "google_storage_bucket_iam_member" "log_admin" {
# Custom bucket for storing TF state
module "state_bucket" {
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
version = "~> 6.0"
version = "~> 7.0"
count = var.create_state_bucket ? 1 : 0

name = var.create_state_bucket_name != "" ? var.create_state_bucket_name : "${local.default_prefix}-build-state-${var.project_id}"
Expand Down
4 changes: 2 additions & 2 deletions modules/tf_cloudbuild_workspace/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ terraform {
google = {
source = "hashicorp/google"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 4.17, != 4.31.0, < 6"
version = ">= 4.17, != 4.31.0, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
# Exclude 4.31.0 for https://github.com/hashicorp/terraform-provider-google/issues/12226
version = ">= 4.17, != 4.31.0, < 6"
version = ">= 4.17, != 4.31.0, < 7"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestTFCloudBuildBuilderGitLab(t *testing.T) {
vars := map[string]interface{}{
"gitlab_authorizer_credential": gitlabPAT,
"gitlab_read_authorizer_credential": gitlabPAT,
"repository_uri": client.project.HTTPURLToRepo,
"repository_uri": client.project.HTTPURLToRepo,
}
bpt := tft.NewTFBlueprintTest(t, tft.WithVars(vars))

Expand Down

0 comments on commit 96b8afc

Please sign in to comment.