From aafd204310021306ce8780813e5f5a7614aca8ba Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Thu, 24 Jun 2021 23:25:50 +0200 Subject: [PATCH] matrix-synapse: Handle disabled media worker Fixes #8 --- charts/matrix-synapse/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/matrix-synapse/templates/deployment.yaml b/charts/matrix-synapse/templates/deployment.yaml index 8101888..9f58bc6 100644 --- a/charts/matrix-synapse/templates/deployment.yaml +++ b/charts/matrix-synapse/templates/deployment.yaml @@ -160,7 +160,7 @@ spec: {{- $mediaworker := false }} {{- range $worker, $config := .Values.workers }} {{- if eq $worker "media_repository" }} - {{- $mediaworker = true }} + {{- $mediaworker = ($config.enabled | default false) }} {{- end }} {{- end }} {{- if and .Values.persistence.enabled (not $mediaworker) }}