From ac16497749e819a99a0ab8d6c27be84abffc5c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 25 Oct 2023 14:29:11 +0200 Subject: [PATCH 1/2] Remove outer volume mount The initContainer does not make use of it --- charts/openproject/templates/web-deployment.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/charts/openproject/templates/web-deployment.yaml b/charts/openproject/templates/web-deployment.yaml index 91d0342..baec85f 100644 --- a/charts/openproject/templates/web-deployment.yaml +++ b/charts/openproject/templates/web-deployment.yaml @@ -57,11 +57,6 @@ spec: configMap: name: "{{- .Values.egress.tls.rootCA.configMap }}" {{- end }} - {{- if .Values.persistence.enabled }} - - name: "data" - persistentVolumeClaim: - claimName: {{ include "common.names.fullname" . }} - {{- end }} initContainers: - name: wait-for-db securityContext: @@ -88,10 +83,17 @@ spec: - name: SSL_CERT_FILE value: "/etc/ssl/certs/custom-ca.pem" {{- end }} + {{- if .Values.persistence.enabled }} + volumes: + - name: "data" + persistentVolumeClaim: + claimName: {{ include "common.names.fullname" . }} volumeMounts: {{- if .Values.persistence.enabled }} - name: "data" mountPath: "/var/openproject/assets" + persistentVolumeClaim: + claimName: {{ include "common.names.fullname" . }} {{- end }} {{- if .Values.egress.tls.rootCA.fileName }} - name: ca-pemstore From 17b81a7258d030703a620c0ac1a8e28890828718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 25 Oct 2023 14:29:24 +0200 Subject: [PATCH 2/2] Bump version to 2.0.3 --- charts/openproject/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/openproject/Chart.yaml b/charts/openproject/Chart.yaml index 2cb5944..cb10529 100644 --- a/charts/openproject/Chart.yaml +++ b/charts/openproject/Chart.yaml @@ -5,7 +5,7 @@ description: "A Helm chart for running OpenProject via Kubernetes" home: "https://www.openproject.org/" icon: "https://www.openproject.org/assets/images/press/openproject-icon-original-color-41055eb6.png" type: "application" -version: "2.0.2" +version: "2.0.3" appVersion: "12" maintainers: - name: OpenProject