From 9fa4eb6a163935db4aabff3d053c4ab5680917e3 Mon Sep 17 00:00:00 2001 From: cfernhout Date: Mon, 26 Aug 2024 11:17:19 +0200 Subject: [PATCH] fix: Add ability to set release channel to None for cluster --- modules/gke/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gke/main.tf b/modules/gke/main.tf index 09b18ab..63fb194 100644 --- a/modules/gke/main.tf +++ b/modules/gke/main.tf @@ -20,7 +20,7 @@ resource "google_container_cluster" "default" { project = var.project_id network = var.vpc_id subnetwork = var.subnetwork - master_version = data.google_container_engine_versions.cluster.latest_master_version + min_master_version = data.google_container_engine_versions.cluster.latest_master_version networking_mode = "VPC_NATIVE" @@ -53,7 +53,7 @@ resource "google_container_cluster" "default" { } release_channel { - channel = "STABLE" + channel = var.k8s_node_auto_upgrade ? "STABLE" : "UNSPECIFIED" } node_config {