From eb73e13b670b007e584adf623e60cb1f1573bd3a Mon Sep 17 00:00:00 2001 From: Arindam Sirohia Date: Tue, 20 Sep 2022 00:35:06 +0530 Subject: [PATCH] Updated for each condition of binary authorization in gke-cluster module --- 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 decb55a0a..e0b31a318 100644 --- a/modules/gke-cluster/main.tf +++ b/modules/gke-cluster/main.tf @@ -293,7 +293,7 @@ resource "google_container_cluster" "cluster" { } dynamic "binary_authorization" { - for_each = var.enable_binary_authorization == true ? [""] : [] + for_each = var.enable_binary_authorization ? [""] : [] content { evaluation_mode = "PROJECT_SINGLETON_POLICY_ENFORCE" }