Skip to content

Commit

Permalink
Refactoring of the co location var name
Browse files Browse the repository at this point in the history
  • Loading branch information
checco committed Aug 28, 2024
1 parent 4532972 commit 9f7eacf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 == true ? [1] : [ ]
for_each = var.instance_co_location == true ? [ ] : [1]
content {
pod_anti_affinity {
preferred_during_scheduling_ignored_during_execution {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ variable "devmode_enabled" {
default = false
}

variable "avoid_colocation" {
variable "instance_co_location" {
description = "Avoid co location of the replicas on the same node"
type = bool
default = false
Expand Down

0 comments on commit 9f7eacf

Please sign in to comment.