Add gateway_api_config, change workload_identity default value

Make the default value on `enable_features` inline with what is set by
optionals.
This commit is contained in:
Wiktor Niesiobędzki 2023-01-25 16:51:49 +01:00
parent 46c52776d0
commit 0af5399389
2 changed files with 9 additions and 1 deletions

View File

@ -197,6 +197,13 @@ resource "google_container_cluster" "cluster" {
}
}
dynamic "gateway_api_config" {
for_each = var.enable_features.gateway_api ? [""] : []
content {
channel = "CHANNEL_STANDARD"
}
}
maintenance_policy {
dynamic "daily_maintenance_window" {
for_each = (

View File

@ -80,6 +80,7 @@ variable "enable_features" {
key_name = string
}))
dataplane_v2 = optional(bool, false)
gateway_api = optional(bool, false)
groups_for_rbac = optional(string)
intranode_visibility = optional(bool, false)
l4_ilb_subsetting = optional(bool, false)
@ -95,7 +96,7 @@ variable "enable_features" {
topic_id = optional(string)
}))
vertical_pod_autoscaling = optional(bool, false)
workload_identity = optional(bool, false)
workload_identity = optional(bool, true)
})
default = {
workload_identity = true