Added TODOs
This commit is contained in:
parent
668f2d7e2a
commit
54ce871333
2 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
(def config-defaults {:issuer "staging"})
|
(def config-defaults {:issuer "staging"})
|
||||||
|
|
||||||
|
; TODO: gec 2022/10/28: That does only work if the :websites and :auth collections have the same order regarding :unique-name!
|
||||||
|
; There must be a check or the config must be sorted first!
|
||||||
(defn flatten-and-reduce-config
|
(defn flatten-and-reduce-config
|
||||||
[config]
|
[config]
|
||||||
(merge (-> config :websites first) (-> config :auth first) {:issuer (config :issuer)}))
|
(merge (-> config :websites first) (-> config :auth first) {:issuer (config :issuer)}))
|
||||||
|
|
|
@ -171,6 +171,7 @@
|
||||||
(yaml/load-as-edn "website/website-build-deployment.yaml")
|
(yaml/load-as-edn "website/website-build-deployment.yaml")
|
||||||
(replace-all-matching-subvalues-in-string-start "NAME" (replace-dots-by-minus unique-name)))))
|
(replace-all-matching-subvalues-in-string-start "NAME" (replace-dots-by-minus unique-name)))))
|
||||||
|
|
||||||
|
; TODO: gec 2022/10/28: gitea-host, gitea-repo, branchname are not in "websiteauth?"
|
||||||
(defn-spec generate-website-build-secret pred/map-or-seq?
|
(defn-spec generate-website-build-secret pred/map-or-seq?
|
||||||
[auth websiteauth?]
|
[auth websiteauth?]
|
||||||
(let [{:keys [unique-name
|
(let [{:keys [unique-name
|
||||||
|
|
Loading…
Reference in a new issue