From 93e53e52a71c11291ab15ed1ca29f99dd1caa5e2 Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Fri, 28 Apr 2023 01:48:40 +0200
Subject: [PATCH] fix: wrong path in postgres chart

---
 postgresql/templates/statefulset.yaml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/postgresql/templates/statefulset.yaml b/postgresql/templates/statefulset.yaml
index 55bc74f..a226f54 100644
--- a/postgresql/templates/statefulset.yaml
+++ b/postgresql/templates/statefulset.yaml
@@ -29,10 +29,11 @@ spec:
         {{ if .Values.tls.enabled -}}
         - name: certs
           secret:
+            defaultMode: 0600
             secretName: {{ .Values.tls.certificatesSecret }}
         {{- end }}
         - configMap:
-            defaultMode: 420
+            defaultMode: 0600
             name: {{ include "postgresql-helm.fullname" . }}
           name: config
         - name: data
@@ -79,7 +80,7 @@ spec:
           volumeMounts:
             - mountPath: "/var/lib/postgresql/data"
               name: data
-              subPath: "{{ .Chart.AppVersion }}"
+              subPath: "{{ .Chart.AppVersion }}/data"
             - mountPath: "/configs"
               name: config
             - mountPath: "/dev/shm"
-- 
GitLab