From 22a85a9a48654c3fcf199d70747aecbeefe365f5 Mon Sep 17 00:00:00 2001 From: GigiaJ Date: Sun, 23 Nov 2025 14:20:01 -0600 Subject: [PATCH] Remove moved method --- iac/src/main/utils/stack_processor.cljs | 27 ------------------------- 1 file changed, 27 deletions(-) diff --git a/iac/src/main/utils/stack_processor.cljs b/iac/src/main/utils/stack_processor.cljs index 2a1963c..3cb41f1 100644 --- a/iac/src/main/utils/stack_processor.cljs +++ b/iac/src/main/utils/stack_processor.cljs @@ -29,33 +29,6 @@ #_(def component-specs (build-registry component-specs-defs)) - -;; We should move this to a list of safe-fns that extend the below inherently. That way we don't bloat this file. -(defn make-listeners [domains-or-json] - (let [domains (if (string? domains-or-json) - (js->clj (js/JSON.parse domains-or-json)) - domains-or-json)] - (vec - (mapcat - (fn [domain] - (let [clean-name (clojure.string/replace domain #"\." "-") - secret-name (str clean-name "-tls")] - - [{:name (str "https-root-" clean-name) - :port 443 - :protocol "HTTPS" - :hostname domain - :tls {:mode "Terminate" - :certificateRefs [{:name secret-name}]}} - - {:name (str "https-wild-" clean-name) - :port 443 - :protocol "HTTPS" - :hostname (str "*." domain) - :tls {:mode "Terminate" - :certificateRefs [{:name secret-name}]}}])) - domains)))) - (defn safe-parse-int [s] (let [n (js/parseInt s 10)] (if (js/isNaN n) nil n)))