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 }}