Skip to content

Commit

Permalink
Move min-k8s-version into local var. (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ensonic authored Aug 28, 2023
1 parent f317a0f commit 612adc7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/bootstrap/cloud/terraform/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
# service account for the nodes. This service account cannot be used by the
# workloads: see workload-identity.tf for those service accounts.

locals {
min_k8s_master_version = "1.24"
}

resource "google_container_cluster" "cloud-robotics" {
project = data.google_project.project.project_id
name = "cloud-robotics"
location = var.zone
min_master_version = "1.24"
min_master_version = local.min_k8s_master_version
enable_shielded_nodes = true
depends_on = [google_project_service.container]

Expand Down Expand Up @@ -39,7 +43,7 @@ resource "google_container_cluster" "cloud-robotics-ar" {
project = data.google_project.project.project_id
name = format("%s-%s", each.key, "ar-cloud-robotics")
location = each.value.zone
min_master_version = "1.24"
min_master_version = local.min_k8s_master_version
enable_shielded_nodes = true
depends_on = [google_project_service.container]

Expand Down

0 comments on commit 612adc7

Please sign in to comment.