From dab9e2ddec54f7f83ef0af297dfefb47e3bddafc Mon Sep 17 00:00:00 2001 From: lzianekhodja Date: Thu, 26 Oct 2023 12:45:24 +0200 Subject: [PATCH] fix node_pools for GKE standar --- kubernetes/gcp/gke/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/gcp/gke/main.tf b/kubernetes/gcp/gke/main.tf index c9af9537f..f1ed4a8cb 100644 --- a/kubernetes/gcp/gke/main.tf +++ b/kubernetes/gcp/gke/main.tf @@ -21,11 +21,11 @@ locals { display_name = "CLUSTER-VPC" } ] : [])) - node_pools = var.autopilot ? null : [ + node_pools = var.autopilot ? null : (var.node_pools == null ? null : [ for node_pool in var.node_pools : merge(node_pool, { name = "${var.name}-${node_pool["name"]}" }) - ] + ]) # NOTE: Dataplane-V2 conflicts with the Calico network policy add-on because # it provides redundant NetworkPolicy capabilities. If V2 is enabled, the # Calico add-on should be disabled.