diff --git a/charts/matrix-synapse/templates/worker-deployment.yaml b/charts/matrix-synapse/templates/worker-deployment.yaml index 766cf56..8dee253 100644 --- a/charts/matrix-synapse/templates/worker-deployment.yaml +++ b/charts/matrix-synapse/templates/worker-deployment.yaml @@ -33,10 +33,7 @@ spec: {{ . | toYaml | nindent 8 }} {{- end }} spec: - {{- with $.Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "matrix-synapse.imagePullSecrets" $ | nindent 6 }} securityContext: {{- $config.podSecurityContext | default $default.podSecurityContext | toYaml | nindent 8 }} {{- if and $needsVolumePermissions (eq $name "media-repository") }}