From 45329726a1b7a8335f706974a49280f4fb942be9 Mon Sep 17 00:00:00 2001 From: Francesco Latini Date: Wed, 28 Aug 2024 12:21:07 +0200 Subject: [PATCH] Misuse of avoid_colocation var --- statefulset.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statefulset.tf b/statefulset.tf index 52ef304..6172ce7 100755 --- a/statefulset.tf +++ b/statefulset.tf @@ -34,7 +34,7 @@ resource "kubernetes_stateful_set" "axonserver" { termination_grace_period_seconds = 120 dynamic "affinity" { - for_each = var.avoid_colocation ? {} : {} + for_each = var.avoid_colocation == true ? [1] : [ ] content { pod_anti_affinity { preferred_during_scheduling_ignored_during_execution {