From 0051666cd0326d5232370d4cdab8d45a9525e3dd Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Thu, 26 May 2022 21:36:30 +0200
Subject: [PATCH] fix: increase verbosity of restic

---
 restic/templates/cronjob.yaml          | 2 ++
 restic/templates/post-install-job.yaml | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/restic/templates/cronjob.yaml b/restic/templates/cronjob.yaml
index f530ad5..c2f6bfe 100644
--- a/restic/templates/cronjob.yaml
+++ b/restic/templates/cronjob.yaml
@@ -43,6 +43,7 @@ spec:
               args:
                 - "forget"
                 - "--prune"
+                - "--verbose"
                 {{- toYaml .Values.keepOptions | nindent 16 }}
               envFrom:
                 - secretRef:
@@ -59,6 +60,7 @@ spec:
               args:
                 - "backup"
                 - "."
+                - "--verbose"
               envFrom:
                 - secretRef:
                     name: {{ include "restic-helm.fullname" . }}
diff --git a/restic/templates/post-install-job.yaml b/restic/templates/post-install-job.yaml
index e21e17e..d0a7e29 100644
--- a/restic/templates/post-install-job.yaml
+++ b/restic/templates/post-install-job.yaml
@@ -35,7 +35,7 @@ spec:
           - "/bin/sh"
           - "-c"
           args:
-            - "restic cat config || restic init"
+            - "restic cat config || restic init --verbose"
           envFrom:
             - secretRef:
                 name: {{ include "restic-helm.fullname" . }}
-- 
GitLab