matrix-synapse: Implement volume permissions
Forgot to set a TODO on these flags, and only now done another full test deploy
This commit is contained in:
parent
bcca6f1f9d
commit
a6e8b9541a
3 changed files with 22 additions and 1 deletions
|
@ -6,7 +6,7 @@ icon: https://matrix.org/images/matrix-logo.svg
|
||||||
appVersion: 1.19.0
|
appVersion: 1.19.0
|
||||||
|
|
||||||
type: application
|
type: application
|
||||||
version: 1.2.0
|
version: 1.3.0
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Alexander Olofsson
|
- name: Alexander Olofsson
|
||||||
email: ace@haxalot.com
|
email: ace@haxalot.com
|
||||||
|
|
|
@ -32,6 +32,24 @@ spec:
|
||||||
{{- include "matrix-synapse.imagePullSecrets" . | nindent 6 }}
|
{{- include "matrix-synapse.imagePullSecrets" . | nindent 6 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.synapse.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.synapse.podSecurityContext | nindent 8 }}
|
||||||
|
{{- if $needsVolumePermissions }}
|
||||||
|
initContainers:
|
||||||
|
- name: volume-permissions
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
chown {{ .Values.volumePermissions.uid }}:{{ .Values.volumePermissions.gid }} -R /synapse/data
|
||||||
|
image: "{{ .Values.volumePermissions.image.repository }}:{{ .Values.volumePermissions.image.tag }}"
|
||||||
|
resources:
|
||||||
|
{{- toYaml .Values.volumePermissions.resources | nindent 12 }}
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: false
|
||||||
|
runAsUser: 0
|
||||||
|
volumeMounts:
|
||||||
|
- name: media
|
||||||
|
mountPath: /synapse/data
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: synapse
|
- name: synapse
|
||||||
command:
|
command:
|
||||||
|
|
|
@ -534,6 +534,9 @@ persistence:
|
||||||
volumePermissions:
|
volumePermissions:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
uid: 666
|
||||||
|
gid: 666
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: alpine
|
repository: alpine
|
||||||
tag: latest
|
tag: latest
|
||||||
|
|
Loading…
Reference in a new issue