Skip to content

Commit

Permalink
Remove zonal test clusters, and create regional clusters with release…
Browse files Browse the repository at this point in the history
… channel (#3186)

* Use regional standard cluster for e2e test

* Remove zonal test clusters, and create regional clusters with release channel

* fix
  • Loading branch information
gongmax committed May 25, 2023
1 parent f324d78 commit ba6dd95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/terraform/e2e/gke-standard/module.tf
Expand Up @@ -43,7 +43,7 @@ module "gke_cluster" {
source = "../../../../install/terraform/modules/gke"

cluster = {
"name" = var.overrideName != "" ? var.overrideName : format("gke-standard-e2e-test-cluster-%s", replace(var.kubernetesVersion, ".", "-"))
"name" = var.overrideName != "" ? var.overrideName : format("standard-e2e-test-cluster-%s", replace(var.kubernetesVersion, ".", "-"))
"location" = var.location
"releaseChannel" = var.releaseChannel
"machineType" = "e2-standard-4"
Expand Down
18 changes: 4 additions & 14 deletions build/terraform/e2e/module.tf
Expand Up @@ -34,18 +34,8 @@ terraform {
}

variable "project" {}
variable "kubernetes_versions_standard" {
description = "Create standard e2e test clusters with these k8s versions in these zones"
type = map(list(string))
default = {
"1.24" = ["us-west1-c", "UNSPECIFIED"]
"1.25" = ["us-central1-c", "UNSPECIFIED"]
"1.26" = ["asia-east1-c", "RAPID"]
}
}

variable "kubernetes_versions_autopilot" {
description = "Create Autopilot e2e test clusters with these k8s versions in these regions"
variable "kubernetes_versions" {
description = "Create e2e test clusters with these k8s versions in these regions"
type = map(list(string))
default = {
"1.24" = ["us-west1", "REGULAR"]
Expand All @@ -55,7 +45,7 @@ variable "kubernetes_versions_autopilot" {
}

module "gke_standard_cluster" {
for_each = var.kubernetes_versions_standard
for_each = var.kubernetes_versions
source = "./gke-standard"
project = var.project
kubernetesVersion = each.key
Expand All @@ -64,7 +54,7 @@ module "gke_standard_cluster" {
}

module "gke_autopilot_cluster" {
for_each = var.kubernetes_versions_autopilot
for_each = var.kubernetes_versions
source = "./gke-autopilot"
project = var.project
kubernetesVersion = each.key
Expand Down

0 comments on commit ba6dd95

Please sign in to comment.