From 687fa673e0f32220bac8b43bcc2edc6ad600e2fe Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Fri, 12 Apr 2024 13:31:54 +0200
Subject: [PATCH] mirgate to new pvc

---
 chart/templates/migrations.yaml | 6 +++---
 chart/templates/pvc.yaml        | 5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/chart/templates/migrations.yaml b/chart/templates/migrations.yaml
index 0823001..e18f3db 100644
--- a/chart/templates/migrations.yaml
+++ b/chart/templates/migrations.yaml
@@ -16,9 +16,9 @@ spec:
         {{- toYaml . | nindent 8 }}
       {{- end }}
       volumes:
-        - name: order-data
+        - name: backups
           persistentVolumeClaim:
-            claimName: order-data
+            claimName: backups
       {{- if .Values.application.secretName }}
         - name: application-secret
           secret:
@@ -32,7 +32,7 @@ spec:
         command: ["knex"]
         args: ["migrate:up"]
         volumeMounts:
-          - name: order-data
+          - name: backups
             mountPath: /data
         {{- if .Values.application.secretName }}
           - name: application-secret
diff --git a/chart/templates/pvc.yaml b/chart/templates/pvc.yaml
index 58e7247..850b1c0 100644
--- a/chart/templates/pvc.yaml
+++ b/chart/templates/pvc.yaml
@@ -1,12 +1,11 @@
 apiVersion: v1
 kind: PersistentVolumeClaim
 metadata:
-  name: order-data
+  name: backups
 spec:
   accessModes:
     - ReadWriteMany
   volumeMode: Filesystem
   resources:
     requests:
-      storage: 10Gi
-  storageClassName: csi-cephfs
+      storage: 10Gi
\ No newline at end of file
-- 
GitLab