gke module datapath for autopilot

This commit is contained in:
Ludovico Magnocavallo 2022-10-25 07:23:38 +02:00
parent 341ad5ef87
commit 68f5719036
No known key found for this signature in database
GPG Key ID: 52DC76E99C10599F
1 changed files with 1 additions and 1 deletions

View File

@ -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"
)