Filter null from application yaml

This commit is contained in:
Clemens Geibel 2022-08-05 11:37:43 +02:00
parent c74c22e33d
commit e733cbe016

View file

@ -9,6 +9,7 @@
(let [storage-class (if (contains? config :postgres-data-volume-path) :manual :local-path)]
(cm/concat-vec
(map yaml/to-string
(filter #(not (nil? %))
[(postgres/generate-config {:postgres-size :2gb :db-name "gitea"})
(postgres/generate-secret config)
(when (contains? config :postgres-data-volume-path)
@ -26,4 +27,4 @@
(gitea/generate-appini-env config)
(gitea/generate-secrets config)
(gitea/generate-ingress config)
(gitea/generate-certificate config)]))))
(gitea/generate-certificate config)])))))