element-web: Add support for adding extra volumes

This commit is contained in:
Alexander Olofsson 2020-08-15 22:07:16 +02:00
parent c3032aa1f7
commit 6abb3b82f5
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
3 changed files with 17 additions and 1 deletions

View file

@ -10,7 +10,7 @@ icon: https://element.io/images/element-logo.svg
appVersion: 1.7.3
type: application
version: 1.0.0
version: 1.0.1
maintainers:
- name: Alexander Olofsson

View file

@ -53,10 +53,16 @@ spec:
- mountPath: /app/config.json
name: config
subPath: config.json
{{- with .Values.extraVolumeMounts }}
{{- . | toYaml | nindent 12 }}
{{- end }}
volumes:
- name: config
configMap:
name: {{ include "element-web.fullname" . }}
{{- with .Values.extraVolumes }}
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View file

@ -28,6 +28,16 @@ defaultServer:
##
config: {}
## Configuration for mounting additional volumes into the application container.
##
extraVolumes: {}
# - name: backgrounds
# persistentVolumeClaim:
# claimName: element-backgrounds
extraVolumeMounts: {}
# - name: backgrounds
# mountPath: /app/themes/element/img/backgrounds/
## Configures an application-specific service account.
##
serviceAccount: