Merge branch 'synapse-fixes' into 'master'
Synapse fixes See merge request ananace/charts!12
This commit is contained in:
commit
a3b4681f1e
3 changed files with 31 additions and 10 deletions
|
@ -47,6 +47,7 @@ spec:
|
||||||
- |
|
- |
|
||||||
chown {{ .Values.volumePermissions.uid }}:{{ .Values.volumePermissions.gid }} -R /synapse/data
|
chown {{ .Values.volumePermissions.uid }}:{{ .Values.volumePermissions.gid }} -R /synapse/data
|
||||||
image: "{{ .Values.volumePermissions.image.repository }}:{{ .Values.volumePermissions.image.tag }}"
|
image: "{{ .Values.volumePermissions.image.repository }}:{{ .Values.volumePermissions.image.tag }}"
|
||||||
|
imagePullPolicy: {{ $.Values.volumePermissions.image.pullPolicy }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.volumePermissions.resources | nindent 12 }}
|
{{- toYaml .Values.volumePermissions.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
|
@ -39,10 +39,15 @@ spec:
|
||||||
{{- if and $needsVolumePermissions (eq $name "media-repository") }}
|
{{- if and $needsVolumePermissions (eq $name "media-repository") }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: volume-permissions
|
- name: volume-permissions
|
||||||
command: ["chown", "-R", "666:666", "/synapse/data"]
|
command:
|
||||||
image: "{{ $.Values.volumePermissions.repository }}:{{ $.Values.volumePermissions.tag }}"
|
- sh
|
||||||
imagePullPolicy: {{ $.Values.volumePermissions.pullPolicy }}
|
- -c
|
||||||
|
- |
|
||||||
|
chown {{ $.Values.volumePermissions.uid }}:{{ $.Values.volumePermissions.gid }} -R /synapse/data
|
||||||
|
image: "{{ $.Values.volumePermissions.image.repository }}:{{ $.Values.volumePermissions.image.tag }}"
|
||||||
|
imagePullPolicy: {{ $.Values.volumePermissions.image.pullPolicy }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
runAsNonRoot: false
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
resources: {{ $.Values.volumePermissions.resources | toYaml | nindent 12 }}
|
resources: {{ $.Values.volumePermissions.resources | toYaml | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -60,6 +65,15 @@ spec:
|
||||||
-e "s/@@REDIS_PASSWORD@@/${REDIS_PASSWORD:-}/" \
|
-e "s/@@REDIS_PASSWORD@@/${REDIS_PASSWORD:-}/" \
|
||||||
> /synapse/config/conf.d/secrets.yaml
|
> /synapse/config/conf.d/secrets.yaml
|
||||||
|
|
||||||
|
{{- if (or $config.extraCommands $default.extraCommands) }}
|
||||||
|
|
||||||
|
{{- with $config.extraCommands | default $default.extraCommands }}
|
||||||
|
{{ range . }}
|
||||||
|
{{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
exec python -B -m synapse.app.{{ (not (not $config.generic)) | ternary "generic_worker" $worker }} \
|
exec python -B -m synapse.app.{{ (not (not $config.generic)) | ternary "generic_worker" $worker }} \
|
||||||
-c /synapse/config/homeserver.yaml \
|
-c /synapse/config/homeserver.yaml \
|
||||||
-c /synapse/config/conf.d/ \
|
-c /synapse/config/conf.d/ \
|
||||||
|
|
|
@ -288,6 +288,12 @@ workers:
|
||||||
volumes: []
|
volumes: []
|
||||||
volumeMounts: []
|
volumeMounts: []
|
||||||
|
|
||||||
|
## 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'
|
||||||
|
|
||||||
## Security context information to set to the worker.
|
## Security context information to set to the worker.
|
||||||
##
|
##
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
|
|
Loading…
Reference in a new issue