Fix k8s-objects
This commit is contained in:
parent
234c920c63
commit
3ffd98786b
2 changed files with 22 additions and 19 deletions
|
@ -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))
|
||||||
|
|
|
@ -21,21 +21,24 @@
|
||||||
(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
|
||||||
[(postgres/generate-config {:postgres-size :8gb :db-name "nextcloud"})
|
(filter
|
||||||
(postgres/generate-secret auth)
|
#(not (nil? %))
|
||||||
(postgres/generate-pvc {:pv-storage-size-gb 50
|
(cm/concat-vec
|
||||||
:pvc-storage-class-name default-storage-class})
|
[(postgres/generate-config {:postgres-size :8gb :db-name "nextcloud"})
|
||||||
(postgres/generate-deployment)
|
(postgres/generate-secret auth)
|
||||||
(postgres/generate-service)
|
(postgres/generate-pvc {:pv-storage-size-gb 50
|
||||||
(nextcloud/generate-secret auth)
|
:pvc-storage-class-name default-storage-class})
|
||||||
(nextcloud/generate-pvc (merge nextcloud-default-storage-config config))
|
(postgres/generate-deployment)
|
||||||
(nextcloud/generate-deployment config)
|
(postgres/generate-service)
|
||||||
(nextcloud/generate-service)]
|
(nextcloud/generate-secret auth)
|
||||||
(nextcloud/generate-ingress-and-cert config)
|
(nextcloud/generate-pvc (merge nextcloud-default-storage-config config))
|
||||||
(when (:contains? config :restic-repository)
|
(nextcloud/generate-deployment config)
|
||||||
[(backup/generate-config config)
|
(nextcloud/generate-service)]
|
||||||
(backup/generate-secret auth)
|
(nextcloud/generate-ingress-and-cert config)
|
||||||
(backup/generate-cron)
|
(when (:contains? config :restic-repository)
|
||||||
(backup/generate-backup-restore-deployment config)])
|
[(backup/generate-config config)
|
||||||
(when (:contains? config :mon-cfg)
|
(backup/generate-secret auth)
|
||||||
(mon/generate (:mon-cfg config) (:mon-auth auth))))))
|
(backup/generate-cron)
|
||||||
|
(backup/generate-backup-restore-deployment config)])
|
||||||
|
(when (:contains? config :mon-cfg)
|
||||||
|
(mon/generate (:mon-cfg config) (:mon-auth auth))))))))
|
||||||
|
|
Loading…
Reference in a new issue