Fix k8s-objects

This commit is contained in:
bom 2023-02-03 12:27:35 +01:00
parent 234c920c63
commit 3ffd98786b
2 changed files with 22 additions and 19 deletions

View file

@ -11,5 +11,5 @@
nextcloud/config? nextcloud/config?
nextcloud/auth? nextcloud/auth?
core/config-defaults core/config-defaults
core/generate core/k8s-objects
cmd-args)) cmd-args))

View file

@ -21,6 +21,9 @@
(let [nextcloud-default-storage-config {:pvc-storage-class-name default-storage-class (let [nextcloud-default-storage-config {:pvc-storage-class-name default-storage-class
:pv-storage-size-gb 200}] :pv-storage-size-gb 200}]
(map yaml/to-string (map yaml/to-string
(filter
#(not (nil? %))
(cm/concat-vec
[(postgres/generate-config {:postgres-size :8gb :db-name "nextcloud"}) [(postgres/generate-config {:postgres-size :8gb :db-name "nextcloud"})
(postgres/generate-secret auth) (postgres/generate-secret auth)
(postgres/generate-pvc {:pv-storage-size-gb 50 (postgres/generate-pvc {:pv-storage-size-gb 50
@ -38,4 +41,4 @@
(backup/generate-cron) (backup/generate-cron)
(backup/generate-backup-restore-deployment config)]) (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))))))))