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] 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