From 0294ba355e8d0809fc4c37e7dcd0365358521af4 Mon Sep 17 00:00:00 2001 From: genlu2011 Date: Wed, 11 Sep 2024 12:31:50 -0700 Subject: [PATCH] fix: upgrade gke module to avoid TPGv5.44.0 with Autopilot (#806) * fix: upgrade gke module to avoid TPGv5.44.0 with Autopilot Change-Id: I716787e0dd8699b36d919feb5c42de6d6ccdbcb5 * fix: lint Change-Id: I61db44be22cc2a82513a700f1f8f1360596c913e --------- Co-authored-by: Gen Lu --- infrastructure/versions.tf | 2 ++ modules/gke-autopilot-private-cluster/main.tf | 2 +- modules/gke-autopilot-public-cluster/main.tf | 2 +- modules/gke-standard-private-cluster/main.tf | 2 +- modules/gke-standard-public-cluster/main.tf | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/infrastructure/versions.tf b/infrastructure/versions.tf index b8e6f2c71..e4e2c02b4 100644 --- a/infrastructure/versions.tf +++ b/infrastructure/versions.tf @@ -19,6 +19,8 @@ terraform { } google-beta = { source = "hashicorp/google-beta" + # Creating Autopilot using GKE submodule is broken in v6.2.0. + version = ">= 5.40.0, !=6.2.0" } helm = { source = "hashicorp/helm" diff --git a/modules/gke-autopilot-private-cluster/main.tf b/modules/gke-autopilot-private-cluster/main.tf index b7ceb277a..ab5364f4e 100644 --- a/modules/gke-autopilot-private-cluster/main.tf +++ b/modules/gke-autopilot-private-cluster/main.tf @@ -14,7 +14,7 @@ module "gke" { source = "terraform-google-modules/kubernetes-engine/google//modules/beta-autopilot-private-cluster" - version = "32.0.1" + version = "33.0.0" project_id = var.project_id regional = var.cluster_regional name = var.cluster_name diff --git a/modules/gke-autopilot-public-cluster/main.tf b/modules/gke-autopilot-public-cluster/main.tf index 6f52c3ff7..ac9e0ce5a 100644 --- a/modules/gke-autopilot-public-cluster/main.tf +++ b/modules/gke-autopilot-public-cluster/main.tf @@ -14,7 +14,7 @@ module "gke" { source = "terraform-google-modules/kubernetes-engine/google//modules/beta-autopilot-public-cluster" - version = "32.0.1" + version = "33.0.0" project_id = var.project_id regional = var.cluster_regional name = var.cluster_name diff --git a/modules/gke-standard-private-cluster/main.tf b/modules/gke-standard-private-cluster/main.tf index dbb58fe70..47ebd46c5 100644 --- a/modules/gke-standard-private-cluster/main.tf +++ b/modules/gke-standard-private-cluster/main.tf @@ -18,7 +18,7 @@ locals { module "gke" { source = "terraform-google-modules/kubernetes-engine/google//modules/private-cluster" - version = "32.0.1" + version = "33.0.0" project_id = var.project_id regional = var.cluster_regional name = var.cluster_name diff --git a/modules/gke-standard-public-cluster/main.tf b/modules/gke-standard-public-cluster/main.tf index 677d65f49..47eed0905 100644 --- a/modules/gke-standard-public-cluster/main.tf +++ b/modules/gke-standard-public-cluster/main.tf @@ -18,7 +18,7 @@ locals { module "gke" { source = "terraform-google-modules/kubernetes-engine/google" - version = "32.0.1" + version = "33.0.0" project_id = var.project_id regional = var.cluster_regional name = var.cluster_name