Sort out the provider handling for Nextcloud

This commit is contained in:
2025-09-20 03:08:14 -05:00
parent 826602b82a
commit 63e20b9307

View File

@@ -17,16 +17,15 @@
"Deploy Nextcloud using direct vault connection info."
[provider vault-params]
(let [core-v1 (.. k8s -core -v1)
helm-v3 (.. k8s -helm -v3)
helm-v3 (.. k8s -helm -v3)
stack-ref (new pulumi/StackReference "cluster")
vault-provider (new vault/Provider
"vault-provider"
(clj->js vault-params))
(clj->js {:address (.getOutput stack-ref "vaultAddress")
:token (.getOutput stack-ref "vaultToken")}))
nextcloud-secrets (.getSecret (.-generic vault)
(clj->js {:path "secret/nextcloud"})
(clj->js {:provider vault-provider
:dependsOn [(get vault-params :vault-port-forward)]}))
(clj->js {:provider vault-provider}))
ns (new (.. core-v1 -Namespace)
"nextcloud-ns"