Filter null from application yaml
This commit is contained in:
parent
c74c22e33d
commit
e733cbe016
1 changed files with 19 additions and 18 deletions
|
@ -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)])))))
|
||||
|
|
Loading…
Reference in a new issue