diff --git a/charts/matrix-synapse/Chart.yaml b/charts/matrix-synapse/Chart.yaml index 6a77b83..08fa1fc 100644 --- a/charts/matrix-synapse/Chart.yaml +++ b/charts/matrix-synapse/Chart.yaml @@ -3,10 +3,10 @@ apiVersion: v2 name: matrix-synapse description: Matrix reference homeserver icon: https://matrix.org/images/matrix-logo.svg -appVersion: 1.19.1 +appVersion: 1.19.2 type: application -version: 1.3.2 +version: 1.3.3 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 a440cac..4cab56c 100644 --- a/charts/matrix-synapse/templates/deployment.yaml +++ b/charts/matrix-synapse/templates/deployment.yaml @@ -61,6 +61,13 @@ spec: -e "s/@@REDIS_PASSWORD@@/${REDIS_PASSWORD:-}/" \ > /synapse/config/conf.d/secrets.yaml + {{- if .Values.synapse.extraCommands }} + + {{ range .Values.synapse.extraCommands }} + {{ . }} + {{- end }} + {{- end }} + /matrix-synapse $@ args: - synapse.app.homeserver diff --git a/charts/matrix-synapse/values.yaml b/charts/matrix-synapse/values.yaml index 513719a..26f04d3 100644 --- a/charts/matrix-synapse/values.yaml +++ b/charts/matrix-synapse/values.yaml @@ -158,6 +158,12 @@ synapse: # - name: spamcheck # mountPath: /usr/local/lib/python3.7/site-packages/company + ## Extra commands to run when starting Synapse + ## + extraCommands: [] + # - 'apt-get update -yqq && apt-get install patch -yqq' + # - 'patch -d/usr/local/lib/python3.7/site-packages/synapse -p2 < /synapse/patches/something.patch' + ## 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