From 6e45fb9e18bafb3b555e90d6b4ae14d325f704f8 Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Wed, 14 Apr 2021 06:09:55 +0200 Subject: [PATCH] Avoid errors with worker replica count --- charts/matrix-synapse/templates/worker-configuration.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/matrix-synapse/templates/worker-configuration.yaml b/charts/matrix-synapse/templates/worker-configuration.yaml index 7e6d5a4..accc7b9 100644 --- a/charts/matrix-synapse/templates/worker-configuration.yaml +++ b/charts/matrix-synapse/templates/worker-configuration.yaml @@ -23,7 +23,7 @@ data: {{ $name }}.worker: | worker_app: "synapse.app.{{ (not (not $config.generic)) | ternary "generic_worker" $worker }}" {{- if $config.name -}} -{{- if (ne $config.replicaCount 1) -}} +{{- if (gt ($config.replicaCount | int) 1) -}} {{- fail "Replica count must be 1 if a worker has a unique name." -}} {{- end }} worker_name: {{ $config.name }}