From 9bf7038149ee7bf6bb7beb2a36afde9a46e7f347 Mon Sep 17 00:00:00 2001 From: GigiaJ Date: Sun, 12 Oct 2025 12:52:09 -0500 Subject: [PATCH] Prevent app deployments for easier testing --- iac/src/main/core.cljs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/iac/src/main/core.cljs b/iac/src/main/core.cljs index eb491a4..74854b2 100644 --- a/iac/src/main/core.cljs +++ b/iac/src/main/core.cljs @@ -33,13 +33,13 @@ _ (.setConfig core-stack "hetzner-k3s:sshPersonalKeyName" #js {:value (-> cfg :sshPersonalKeyName) :secret false}) _ (.setConfig core-stack "hcloud:token" #js {:value (-> cfg :hcloudToken) :secret true}) _ (.setConfig core-stack "hetzner-k3s:privateKeySsh" #js {:value (-> cfg :privateKeySsh) :secret true}) - ;;core-result (.up core-stack #js {:onOutput println}) + core-result (.up core-stack #js {:onOutput println}) ;; Checks for changes on the core and prevents deleting the app-stack needlessly. ;; Important for the Openbao vault as it is deployed here and configured on the app-stack generally - core-preview-result (.preview core-stack #js {:onOutput println}) - core-change-summary (js->clj (.-changeSummary core-preview-result) :keywordize-keys true) - core-result (when (or (zero? (:delete core-change-summary 0)) + ;;core-preview-result (.preview core-stack #js {:onOutput println}) + ;;core-change-summary (js->clj (.-changeSummary core-preview-result) :keywordize-keys true) + #_core-result #_(when (or (zero? (:delete core-change-summary 0)) (pos? (:update core-change-summary 0)) (pos? (:create core-change-summary 0))) (.up core-stack #js {:onOutput println})) @@ -88,10 +88,10 @@ _ (.setConfig app-stack "vault:address" #js {:value vault-address :secret true}) _ (.setConfig app-stack "hetzner-k3s:apiToken" #js {:value (-> cfg :apiToken) :secret true}) - app-result (.up app-stack #js {:onOutput println}) +;; app-result (.up app-stack #js {:onOutput println}) - app-outputs (.outputs app-stack) - _ (println app-outputs) + ;; app-outputs (.outputs app-stack) + ;; _ (println app-outputs) _ (.kill port-forward)] "All stacks deployed and cleaned up successfully."))