From 768c1d4bd33fd954cf17da977158c3fecd237eb9 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Mon, 18 Apr 2022 13:34:48 -0400 Subject: [PATCH] =?UTF-8?q?rollback,=20on=20rajoute=20les=20volumes=20?= =?UTF-8?q?=C3=A0=20la=20main=20mais=20va=20fail=20car=20pas=20de=20pvc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- charts/offlineimap/Chart.yaml | 2 +- charts/offlineimap/templates/common.yaml | 8 +++++++- charts/offlineimap/templates/cronjob.yaml | 9 ++++++--- charts/offlineimap/values.yaml | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) 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