Merge pull request #908 from GoogleCloudPlatform/ludo/gke-autopilot-datapath

GKE module: autopilot fixes
This commit is contained in:
Julio Castillo 2022-10-25 23:33:49 +02:00 committed by GitHub
commit 39f76b3d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"
)