From 5b6200f6e5c65e61ce13b27dcd766aa67b69e0f2 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Mon, 18 Apr 2022 15:17:31 -0400 Subject: [PATCH] feat: add db --- charts/offlineimap/Chart.yaml | 2 +- charts/offlineimap/templates/cronjob.yaml | 6 ++++++ charts/offlineimap/values.yaml | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/charts/offlineimap/Chart.yaml b/charts/offlineimap/Chart.yaml index 911d661..b78686b 100644 --- a/charts/offlineimap/Chart.yaml +++ b/charts/offlineimap/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 description: Helm chart for offlineimap name: offlineimap type: application -version: 0.0.19 +version: 0.0.20 kubeVersion: ">=1.16.0-0" keywords: - offlineimap diff --git a/charts/offlineimap/templates/cronjob.yaml b/charts/offlineimap/templates/cronjob.yaml index 89656ab..8b9e9ec 100644 --- a/charts/offlineimap/templates/cronjob.yaml +++ b/charts/offlineimap/templates/cronjob.yaml @@ -60,8 +60,14 @@ spec: volumeMounts: - name: dump mountPath: /dump + - name: db + mountPath: /home/offlineimap/.offlineimap volumes: - name: dump hostPath: path: /data/volume-offlineimap + type: '' + - name: db + hostPath: + path: /data/volume-offlineimap-db type: '' \ No newline at end of file diff --git a/charts/offlineimap/values.yaml b/charts/offlineimap/values.yaml index e11f6a6..8c85c13 100644 --- a/charts/offlineimap/values.yaml +++ b/charts/offlineimap/values.yaml @@ -42,3 +42,8 @@ persistence: type: hostPath hostPath: /data/volume-offlineimap mountPath: /dump + db: + enabled: true + type: hostPath + hostPath: /data/volume-offlineimap-db + mountPath: /home/offlineimap/.offlineimap \ No newline at end of file