From f60b113037899ed9dffa190449ff5fc9aae303fc Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 18 Oct 2023 14:13:09 +0200 Subject: [PATCH] Generate application.yaml with backup --- src/main/cljc/dda/c4k_taiga/core.cljc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/cljc/dda/c4k_taiga/core.cljc b/src/main/cljc/dda/c4k_taiga/core.cljc index 80aeb55..46abbf7 100644 --- a/src/main/cljc/dda/c4k_taiga/core.cljc +++ b/src/main/cljc/dda/c4k_taiga/core.cljc @@ -8,6 +8,7 @@ [dda.c4k-common.predicate :as cp] [dda.c4k-common.monitoring :as mon] [dda.c4k-taiga.taiga :as taiga] + [dda.c4k-taiga.backup :as backup] [dda.c4k-common.postgres :as postgres])) (def default-storage-class :local-path) @@ -55,5 +56,10 @@ (taiga/generate-rabbitmq-pvc-events config) (taiga/generate-secret auth)] (taiga/generate-ingress-and-cert config) + (when (contains? config :restic-repository) + [(backup/generate-config config) + (backup/generate-secret auth) + (backup/generate-cron) + (backup/generate-backup-restore-deployment config)]) (when (:contains? config :mon-cfg) (mon/generate (:mon-cfg config) (:mon-auth auth))))))))