Far cleaner output extraction. Reads way more smoothly.
This commit is contained in:
@@ -47,15 +47,10 @@
|
|||||||
(base/mod-quick-deploy
|
(base/mod-quick-deploy
|
||||||
shared-service-registry
|
shared-service-registry
|
||||||
(fn [init]
|
(fn [init]
|
||||||
(let [app-outputs (get init :setup)]
|
(let [secrets (p-> init .-harbor "vault:prepare" "stringData")]
|
||||||
{}
|
{:url (p-> secrets .-host #(str "https://" %))
|
||||||
#_{:url (.apply app-outputs
|
:username (p-> secrets .-username)
|
||||||
(fn [%]
|
:password (p-> secrets .-password)}))))
|
||||||
(let [host-output (-> % .-harbor (aget "vault-secrets") .-secrets .-host)]
|
|
||||||
(.apply host-output #(str "https://" %)))))
|
|
||||||
|
|
||||||
:username (.apply app-outputs #(-> % .-harbor (aget "vault-secrets") .-secrets .-username))
|
|
||||||
:password (.apply app-outputs #(-> % .-harbor (aget "vault-secrets") .-secrets .-password))}))))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user