From ed6e9e56873c5bdbcd5cc95629f77420a9657cc5 Mon Sep 17 00:00:00 2001
From: Steven Borisko <borisko@google.com>
Date: Thu, 21 Dec 2023 11:06:48 -0800
Subject: [PATCH] remove default node pool deletion

---
 a3/terraform/modules/cluster/gke/main.tf | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/a3/terraform/modules/cluster/gke/main.tf b/a3/terraform/modules/cluster/gke/main.tf
index 0ac888ab..ad5b1c9c 100644
--- a/a3/terraform/modules/cluster/gke/main.tf
+++ b/a3/terraform/modules/cluster/gke/main.tf
@@ -79,10 +79,9 @@ resource "google_container_cluster" "cluster" {
   # pool defined. So we create the smallest possible default  node pool and
   # immediately delete it. This is a best-practice suggested in the Terraform
   # documentation for the container_cluster resource.
-  remove_default_node_pool = true
-  initial_node_count       = 1
-  min_master_version       = local.gke_master_version
-  deletion_protection      = false
+  initial_node_count  = 1
+  min_master_version  = local.gke_master_version
+  deletion_protection = false
 
   network    = module.network.network_self_links[0]
   subnetwork = module.network.subnetwork_self_links[0]