Skip to content

Commit

Permalink
fix version to 1.24, add per-version naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerlynn committed Jan 19, 2023
1 parent 7df2e67 commit e164cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion build/terraform/e2e-gke-autopilot/module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ variable "project" {
default = ""
}

variable kubernetesVersion {
default = "1.24"
}

module "gke_cluster" {
source = "../../../install/terraform/modules/gke-autopilot"

cluster = {
"name" = "gke-autopilot-e2e-test-cluster"
"name" = format("gke-autopilot-e2e-test-cluster-%s", replace(var.kubernetesVersion, ".", "-"))
"project" = var.project
"location" = "us-west1"
}
Expand Down
2 changes: 1 addition & 1 deletion install/terraform/modules/gke-autopilot/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ locals {
network = lookup(var.cluster, "network", "default")
subnetwork = lookup(var.cluster, "subnetwork", "")
releaseChannel = lookup(var.cluster, "releaseChannel", "REGULAR")
kubernetesVersion = lookup(var.cluster, "kubernetesVersion", "")
kubernetesVersion = lookup(var.cluster, "kubernetesVersion", "1.24")
}

# echo command used for debugging purpose
Expand Down

0 comments on commit e164cac

Please sign in to comment.