From 466e52e55a8b236402579b41b8706348a445f99d Mon Sep 17 00:00:00 2001 From: Guilherme Sautner Date: Fri, 20 Oct 2023 15:50:11 -0300 Subject: [PATCH] Fixing missing mounting for main container #19 --- charts/cryptpad/Chart.yaml | 2 +- charts/cryptpad/templates/cryptpad.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/cryptpad/Chart.yaml b/charts/cryptpad/Chart.yaml index bc65b1e..27270f4 100644 --- a/charts/cryptpad/Chart.yaml +++ b/charts/cryptpad/Chart.yaml @@ -21,7 +21,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.12 +version: 0.0.13 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/cryptpad/templates/cryptpad.yaml b/charts/cryptpad/templates/cryptpad.yaml index 2610dce..3824024 100644 --- a/charts/cryptpad/templates/cryptpad.yaml +++ b/charts/cryptpad/templates/cryptpad.yaml @@ -102,6 +102,11 @@ spec: claimName: {{ tpl $dirvalues.existingClaim $ }} {{- end }} {{- end }} + {{- else if not .Values.workloadStateful }} + {{- range $dir, $dirvalues := .Values.persistence.cryptpad }} + - name: cryptpad-{{ $dir }} + mountPath: /cryptpad/{{ $dir }} + {{- end }} {{- end }} - name: configmaps mountPath: {{ .Values.cpadConfig }}