Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-custom-metrics-writer-role
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Jan 16, 2025
2 parents bf60dc9 + 9a5aa01 commit f9919c6
Show file tree
Hide file tree
Showing 16 changed files with 65 additions and 21 deletions.
9 changes: 6 additions & 3 deletions autogen/main/cluster.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1153,9 +1153,12 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

{% if i == 1 %}
depends_on = [google_container_node_pool.pools[0]]
{% endif %}
depends_on = [
google_compute_firewall.intra_egress,
{% if i == 1 %}
google_container_node_pool.pools[0],
{% endif %}
]
}
{% endfor %}
{% endif %}
8 changes: 7 additions & 1 deletion cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,9 @@ resource "google_container_node_pool" "pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [
google_compute_firewall.intra_egress,
]
}
resource "google_container_node_pool" "windows_pools" {
provider = google
Expand Down Expand Up @@ -1127,5 +1130,8 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [google_container_node_pool.pools[0]]
depends_on = [
google_compute_firewall.intra_egress,
google_container_node_pool.pools[0],
]
}
2 changes: 1 addition & 1 deletion examples/acm-terraform-blog-part1/terraform/gke.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 = "~> 17.0"
version = "~> 18.0"

project_id = var.project
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/acm-terraform-blog-part2/terraform/gke.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 = "~> 17.0"
version = "~> 18.0"

project_id = var.project
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/acm-terraform-blog-part3/terraform/gke.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 = "~> 17.0"
version = "~> 18.0"

project_id = var.project
disable_services_on_destroy = false
Expand Down
2 changes: 1 addition & 1 deletion examples/safer_cluster_iap_bastion/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 = "~> 17.0"
version = "~> 18.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down
8 changes: 7 additions & 1 deletion modules/beta-private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,9 @@ resource "google_container_node_pool" "pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [
google_compute_firewall.intra_egress,
]
}
resource "google_container_node_pool" "windows_pools" {
provider = google-beta
Expand Down Expand Up @@ -1312,5 +1315,8 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [google_container_node_pool.pools[0]]
depends_on = [
google_compute_firewall.intra_egress,
google_container_node_pool.pools[0],
]
}
8 changes: 7 additions & 1 deletion modules/beta-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,9 @@ resource "google_container_node_pool" "pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [
google_compute_firewall.intra_egress,
]
}
resource "google_container_node_pool" "windows_pools" {
provider = google-beta
Expand Down Expand Up @@ -1229,5 +1232,8 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [google_container_node_pool.pools[0]]
depends_on = [
google_compute_firewall.intra_egress,
google_container_node_pool.pools[0],
]
}
8 changes: 7 additions & 1 deletion modules/beta-public-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,9 @@ resource "google_container_node_pool" "pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [
google_compute_firewall.intra_egress,
]
}
resource "google_container_node_pool" "windows_pools" {
provider = google-beta
Expand Down Expand Up @@ -1282,5 +1285,8 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [google_container_node_pool.pools[0]]
depends_on = [
google_compute_firewall.intra_egress,
google_container_node_pool.pools[0],
]
}
8 changes: 7 additions & 1 deletion modules/beta-public-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,9 @@ resource "google_container_node_pool" "pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [
google_compute_firewall.intra_egress,
]
}
resource "google_container_node_pool" "windows_pools" {
provider = google-beta
Expand Down Expand Up @@ -1199,5 +1202,8 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [google_container_node_pool.pools[0]]
depends_on = [
google_compute_firewall.intra_egress,
google_container_node_pool.pools[0],
]
}
2 changes: 1 addition & 1 deletion modules/binary-authorization/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ locals {

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

project_id = var.project_id
activate_apis = local.required_enabled_apis
Expand Down
8 changes: 7 additions & 1 deletion modules/private-cluster-update-variant/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,9 @@ resource "google_container_node_pool" "pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [
google_compute_firewall.intra_egress,
]
}
resource "google_container_node_pool" "windows_pools" {
provider = google
Expand Down Expand Up @@ -1239,5 +1242,8 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [google_container_node_pool.pools[0]]
depends_on = [
google_compute_firewall.intra_egress,
google_container_node_pool.pools[0],
]
}
8 changes: 7 additions & 1 deletion modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,9 @@ resource "google_container_node_pool" "pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [
google_compute_firewall.intra_egress,
]
}
resource "google_container_node_pool" "windows_pools" {
provider = google
Expand Down Expand Up @@ -1157,5 +1160,8 @@ resource "google_container_node_pool" "windows_pools" {
delete = lookup(var.timeouts, "delete", "45m")
}

depends_on = [google_container_node_pool.pools[0]]
depends_on = [
google_compute_firewall.intra_egress,
google_container_node_pool.pools[0],
]
}
2 changes: 1 addition & 1 deletion modules/services/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

project_id = var.project_id
enable_apis = var.enable_apis
Expand Down
1 change: 0 additions & 1 deletion test/integration/node_pool/testdata/TestNodePool.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"clusterIpv4Cidr": "192.168.0.0/18",
"clusterIpv4CidrBlock": "192.168.0.0/18",
"clusterSecondaryRangeName": "cft-gke-test-pods-RANDOM_STRING",
"defaultPodIpv4RangeUtilization": 0.0624,
"podCidrOverprovisionConfig": {},
"servicesIpv4Cidr": "192.168.64.0/18",
"servicesIpv4CidrBlock": "192.168.64.0/18",
Expand Down
8 changes: 4 additions & 4 deletions test/setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ locals {

module "gke-project-1" {
source = "terraform-google-modules/project-factory/google"
version = "~> 17.0"
version = "~> 18.0"

name = "ci-gke-${random_id.random_project_id_suffix.hex}"
random_project_id = true
Expand All @@ -70,7 +70,7 @@ module "gke-project-1" {

module "gke-project-2" {
source = "terraform-google-modules/project-factory/google"
version = "~> 17.0"
version = "~> 18.0"

name = "ci-gke-${random_id.random_project_id_suffix.hex}"
random_project_id = true
Expand All @@ -92,7 +92,7 @@ module "gke-project-2" {
# apis as documented https://cloud.google.com/service-mesh/docs/scripted-install/reference#setting_up_your_project
module "gke-project-asm" {
source = "terraform-google-modules/project-factory/google"
version = "~> 17.0"
version = "~> 18.0"

name = "ci-gke-asm-${random_id.random_project_id_suffix.hex}"
random_project_id = true
Expand All @@ -107,7 +107,7 @@ module "gke-project-asm" {

module "gke-project-fleet" {
source = "terraform-google-modules/project-factory/google"
version = "~> 17.0"
version = "~> 18.0"

name = "ci-gke-fleet-${random_id.random_project_id_suffix.hex}"
random_project_id = true
Expand Down

0 comments on commit f9919c6

Please sign in to comment.