Skip to content

Commit 30d6239

Browse files
authored
Merge pull request #7938 from ameukam/prow-build-bump-providers
gcp: Bump terraform providers for build clusters
2 parents 8d5b408 + 9bf9590 commit 30d6239

File tree

11 files changed

+24
-17
lines changed

11 files changed

+24
-17
lines changed

infra/gcp/terraform/k8s-infra-prow-build-trusted/00-provider.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ terraform {
3030
required_providers {
3131
google = {
3232
source = "hashicorp/google"
33-
version = "~> 4.73.2"
33+
version = "~> 5.45.0"
3434
}
3535
google-beta = {
3636
source = "hashicorp/google-beta"
37-
version = "~> 4.73.2"
37+
version = "~> 5.45.0"
3838
}
3939
}
4040
}

infra/gcp/terraform/k8s-infra-prow-build-trusted/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
module "iam" {
1818
source = "terraform-google-modules/iam/google//modules/projects_iam"
19-
version = "~> 7"
19+
version = "~> 8.1"
2020

2121
projects = [module.project.project_id]
2222

infra/gcp/terraform/k8s-infra-prow-build-trusted/secrets.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ resource "google_secret_manager_secret" "build_cluster_secrets" {
8383
group = each.value.group
8484
}
8585
replication {
86-
automatic = true
86+
auto {}
8787
}
8888
}
8989

infra/gcp/terraform/k8s-infra-prow-build/00-provider.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ terraform {
3030
required_providers {
3131
google = {
3232
source = "hashicorp/google"
33-
version = "~> 4.73.2"
33+
version = "~> 5.45.0"
3434
}
3535
google-beta = {
3636
source = "hashicorp/google-beta"
37-
version = "~> 4.73.2"
37+
version = "~> 5.45.0"
3838
}
3939
}
4040
}

infra/gcp/terraform/k8s-infra-prow-build/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
module "iam" {
1818
source = "terraform-google-modules/iam/google//modules/projects_iam"
19-
version = "~> 7"
19+
version = "~> 8.1"
2020

2121
projects = [module.project.project_id]
2222

infra/gcp/terraform/k8s-infra-prow-build/secrets.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource "google_secret_manager_secret" "build_cluster_secrets" {
3939
group = each.value.group
4040
}
4141
replication {
42-
automatic = true
42+
auto {}
4343
}
4444
}
4545

infra/gcp/terraform/modules/gke-cluster/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ terraform {
2020
required_providers {
2121
google = {
2222
source = "hashicorp/google"
23-
version = "~> 4.73.2"
23+
version = "~> 5.45.0"
2424
}
2525
google-beta = {
2626
source = "hashicorp/google-beta"
27-
version = "~> 4.73.2"
27+
version = "~> 5.45.0"
2828
}
2929
}
3030
}

infra/gcp/terraform/modules/gke-nodepool/main.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ resource "google_container_node_pool" "node_pool" {
4646
disk_size_gb = var.disk_size_gb
4747
disk_type = var.disk_type
4848
labels = var.labels
49-
taint = var.taints
5049

5150
service_account = var.service_account
5251
oauth_scopes = ["https://www.googleapis.com/auth/cloud-platform"]
@@ -65,6 +64,14 @@ resource "google_container_node_pool" "node_pool" {
6564
metadata = {
6665
disable-legacy-endpoints = "true"
6766
}
67+
dynamic "taint" {
68+
for_each = var.taints
69+
content {
70+
effect = taint.value.effect
71+
key = taint.value.key
72+
value = taint.value.value
73+
}
74+
}
6875
}
6976

7077
// If we need to destroy the node pool, create the new one before destroying

infra/gcp/terraform/modules/gke-nodepool/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ terraform {
2020
required_providers {
2121
google = {
2222
source = "hashicorp/google"
23-
version = "~> 4.73.2"
23+
version = "~> 5.45.0"
2424
}
2525
google-beta = {
2626
source = "hashicorp/google-beta"
27-
version = "~> 4.73.2"
27+
version = "~> 5.45.0"
2828
}
2929
}
3030
}

infra/gcp/terraform/modules/gke-project/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ terraform {
2020
required_providers {
2121
google = {
2222
source = "hashicorp/google"
23-
version = "~> 4.73.2"
23+
version = "~> 5.45.0"
2424
}
2525
google-beta = {
2626
source = "hashicorp/google-beta"
27-
version = "~> 4.73.2"
27+
version = "~> 5.45.0"
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)