From 6abb3b82f50d72591c945ba8e99ed2d9efacc4d5 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Sat, 15 Aug 2020 22:07:16 +0200 Subject: [PATCH] element-web: Add support for adding extra volumes --- charts/element-web/Chart.yaml | 2 +- charts/element-web/templates/deployment.yaml | 6 ++++++ charts/element-web/values.yaml | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/charts/element-web/Chart.yaml b/charts/element-web/Chart.yaml index 433c918..bebc92a 100644 --- a/charts/element-web/Chart.yaml +++ b/charts/element-web/Chart.yaml @@ -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 diff --git a/charts/element-web/templates/deployment.yaml b/charts/element-web/templates/deployment.yaml index 121f5f3..82e9750 100644 --- a/charts/element-web/templates/deployment.yaml +++ b/charts/element-web/templates/deployment.yaml @@ -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 }} diff --git a/charts/element-web/values.yaml b/charts/element-web/values.yaml index 2518c4c..4cf2da4 100644 --- a/charts/element-web/values.yaml +++ b/charts/element-web/values.yaml @@ -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: