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