diff --git a/charts/matrix-synapse/Chart.yaml b/charts/matrix-synapse/Chart.yaml index 543603c..1b8f394 100644 --- a/charts/matrix-synapse/Chart.yaml +++ b/charts/matrix-synapse/Chart.yaml @@ -6,7 +6,7 @@ icon: https://matrix.org/images/matrix-logo.svg appVersion: 1.18.0 type: application -version: 1.1.0 +version: 1.1.1 maintainers: - name: Alexander Olofsson email: ace@haxalot.com diff --git a/charts/matrix-synapse/templates/deployment.yaml b/charts/matrix-synapse/templates/deployment.yaml index 2c9fd71..631d57c 100644 --- a/charts/matrix-synapse/templates/deployment.yaml +++ b/charts/matrix-synapse/templates/deployment.yaml @@ -99,6 +99,9 @@ spec: mountPath: /synapse/keys - name: media mountPath: /synapse/data + {{- with .Values.synapse.extraVolumeMounts }} + {{- . | toYaml | nindent 12 }} + {{- end }} resources: {{- toYaml .Values.synapse.resources | nindent 12 }} volumes: @@ -129,6 +132,9 @@ spec: {{- else }} emptyDir: {} {{- end }} + {{- with .Values.synapse.extraVolumes }} + {{- . | toYaml | nindent 8 }} + {{- end }} {{- with .Values.synapse.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/matrix-synapse/values.yaml b/charts/matrix-synapse/values.yaml index c005afa..195276c 100644 --- a/charts/matrix-synapse/values.yaml +++ b/charts/matrix-synapse/values.yaml @@ -144,6 +144,20 @@ synapse: # - name: SYNAPSE_CACHE_FACTOR # value: "2" + ## Additional volumes to mount into Synapse + ## + extraVolumes: {} + # - name: spamcheck + # flexVolume: + # driver: ananace/git-live + # options: + # repo: https://github.com/company/synapse-module + # interval: 1d + # readOnly: true + extraVolumeMounts: {} + # - name: spamcheck + # mountPath: /usr/local/lib/python3.7/site-packages/company + ## Configuration for the pod security policy, Synapse will by always run as ## its own user, even if not set. ## Note that changing this may also require you to use the volumePermission @@ -221,15 +235,11 @@ workers: # - name: SYNAPSE_CACHE_FACTOR # value: "1.0" - ## Additional volume mounts to add to the worker. - ## Useful for the media repo. - ## - volumeMounts: {} - ## Additional volumes to add to the worker. - ## Useful for the media repo. + ## Useful for the media repo, or for adding Python modules. ## volumes: {} + volumeMounts: {} ## Security context information to set to the worker. ##