diff --git a/charts/offlineimap/Chart.yaml b/charts/offlineimap/Chart.yaml index 7a86f54..c05608f 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.13 +version: 0.0.15 kubeVersion: ">=1.16.0-0" keywords: - offlineimap diff --git a/charts/offlineimap/templates/common.yaml b/charts/offlineimap/templates/common.yaml index ac9147a..bfc9048 100644 --- a/charts/offlineimap/templates/common.yaml +++ b/charts/offlineimap/templates/common.yaml @@ -1,4 +1,10 @@ {{/* Make sure all variables are set properly */}} {{- include "common.values.setup" . }} -{{ include "common.all" . }} +{{/* custom render */}} + +{{- include "common.pvc" . }} + +{{- if .Values.secret -}} + {{ include "common.secret" . | nindent 0 }} +{{- end -}} \ No newline at end of file diff --git a/charts/offlineimap/templates/cronjob.yaml b/charts/offlineimap/templates/cronjob.yaml index d28b198..5303e9f 100644 --- a/charts/offlineimap/templates/cronjob.yaml +++ b/charts/offlineimap/templates/cronjob.yaml @@ -54,7 +54,10 @@ spec: {{- end }} {{- end }} {{- end }} - {{- with (include "common.controller.volumes" . | trim) }} + volumeMounts: + - name: dump + mountPath: /dump volumes: - {{- nindent 2 . }} - {{- end }} + - name: dump + persistentVolumeClaim: + claimName: {{ include "common.names.fullname" . }}-dump \ No newline at end of file diff --git a/charts/offlineimap/values.yaml b/charts/offlineimap/values.yaml index 23a2b05..b47ade0 100644 --- a/charts/offlineimap/values.yaml +++ b/charts/offlineimap/values.yaml @@ -38,4 +38,4 @@ persistence: enabled: true type: hostPath hostPath: /data/volume-offlineimap - mountPath: /dump + mountPath: /dump \ No newline at end of file