From f34119c45f65a4185de85c263b54eb12ed10cee6 Mon Sep 17 00:00:00 2001 From: GigiaJ Date: Sat, 27 Sep 2025 21:03:22 -0500 Subject: [PATCH] Reference the reusable util --- iac/src/main/k8s/services/nextcloud/service.cljs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/iac/src/main/k8s/services/nextcloud/service.cljs b/iac/src/main/k8s/services/nextcloud/service.cljs index e130974..3b1df6e 100644 --- a/iac/src/main/k8s/services/nextcloud/service.cljs +++ b/iac/src/main/k8s/services/nextcloud/service.cljs @@ -5,7 +5,8 @@ ["@pulumi/vault" :as vault] ["fs" :as fs] ["js-yaml" :as yaml] - ["path" :as path])) + ["path" :as path] + [utils.vault :refer [get-secret-val]])) (defn- add-skip-await-transformation "A Pulumi transformation that adds the skipAwait annotation to problematic resources." @@ -22,11 +23,6 @@ (assoc args :metadata new-metadata)) args))) -(defn- get-secret-val - "Extract a specific key from a Vault secret Output/Promise." - [secret-promise key] - (.then secret-promise #(aget (.-data %) key))) - (defn deploy-nextcloud "Deploy Nextcloud using direct vault connection info." [provider vault-provider]