Generate application.yaml with backup

This commit is contained in:
erik 2023-10-18 14:13:09 +02:00
parent 0df619fdca
commit f60b113037

View file

@ -8,6 +8,7 @@
[dda.c4k-common.predicate :as cp] [dda.c4k-common.predicate :as cp]
[dda.c4k-common.monitoring :as mon] [dda.c4k-common.monitoring :as mon]
[dda.c4k-taiga.taiga :as taiga] [dda.c4k-taiga.taiga :as taiga]
[dda.c4k-taiga.backup :as backup]
[dda.c4k-common.postgres :as postgres])) [dda.c4k-common.postgres :as postgres]))
(def default-storage-class :local-path) (def default-storage-class :local-path)
@ -55,5 +56,10 @@
(taiga/generate-rabbitmq-pvc-events config) (taiga/generate-rabbitmq-pvc-events config)
(taiga/generate-secret auth)] (taiga/generate-secret auth)]
(taiga/generate-ingress-and-cert config) (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) (when (:contains? config :mon-cfg)
(mon/generate (:mon-cfg config) (:mon-auth auth)))))))) (mon/generate (:mon-cfg config) (:mon-auth auth))))))))