Skip to content

Commit

Permalink
Misuse of avoid_colocation var
Browse files Browse the repository at this point in the history
  • Loading branch information
checco committed Aug 28, 2024
1 parent 2be3a7a commit 4532972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statefulset.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4532972

Please sign in to comment.