From 68f57190360d98c6bd2c961c4c89e0a219fbd1d8 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Tue, 25 Oct 2022 07:23:38 +0200 Subject: [PATCH] gke module datapath for autopilot --- modules/gke-cluster/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gke-cluster/main.tf b/modules/gke-cluster/main.tf index 9981d9b4..3c041541 100644 --- a/modules/gke-cluster/main.tf +++ b/modules/gke-cluster/main.tf @@ -41,7 +41,7 @@ resource "google_container_cluster" "cluster" { initial_node_count = 1 remove_default_node_pool = var.enable_features.autopilot ? null : true datapath_provider = ( - var.enable_features.dataplane_v2 + var.enable_features.dataplane_v2 || var.enable_features.autopilot ? "ADVANCED_DATAPATH" : "DATAPATH_PROVIDER_UNSPECIFIED" )