From 54ce87133381c43cf5530525df74b1403af3628e Mon Sep 17 00:00:00 2001 From: Clemens Date: Fri, 28 Oct 2022 11:34:32 +0200 Subject: [PATCH] Added TODOs --- src/main/cljc/dda/c4k_website/core.cljc | 2 ++ src/main/cljc/dda/c4k_website/website.cljc | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/cljc/dda/c4k_website/core.cljc b/src/main/cljc/dda/c4k_website/core.cljc index 3b83dcc..a35d26b 100644 --- a/src/main/cljc/dda/c4k_website/core.cljc +++ b/src/main/cljc/dda/c4k_website/core.cljc @@ -7,6 +7,8 @@ (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 [config] (merge (-> config :websites first) (-> config :auth first) {:issuer (config :issuer)})) diff --git a/src/main/cljc/dda/c4k_website/website.cljc b/src/main/cljc/dda/c4k_website/website.cljc index 0a154b2..ec7c63d 100644 --- a/src/main/cljc/dda/c4k_website/website.cljc +++ b/src/main/cljc/dda/c4k_website/website.cljc @@ -171,6 +171,7 @@ (yaml/load-as-edn "website/website-build-deployment.yaml") (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? [auth websiteauth?] (let [{:keys [unique-name