Update Nextcloud to current format
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
(ns k8s.services.nextcloud.service
|
(ns k8s.services.nextcloud.service)
|
||||||
(:require [utils.k8s :refer [make-transformer]]))
|
|
||||||
|
|
||||||
(def config
|
(def config
|
||||||
{:stack [:vault-secrets :chart :ingress]
|
{:stack [:vault-secrets :chart :ingress]
|
||||||
@@ -8,11 +7,8 @@
|
|||||||
:image-port 8080
|
:image-port 8080
|
||||||
:vault-load-yaml true
|
:vault-load-yaml true
|
||||||
:chart-opts {:fetchOpts {:repo "https://nextcloud.github.io/helm/"}
|
:chart-opts {:fetchOpts {:repo "https://nextcloud.github.io/helm/"}
|
||||||
:helm-values-fn (make-transformer
|
:values {:nextcloud {:host 'host
|
||||||
(fn [{:keys [app-name secrets]}]
|
:trustedDomains ['host 'app-name]}}
|
||||||
(let [{:keys [host]} secrets]
|
|
||||||
[[["nextcloud" "host"] host]
|
|
||||||
[["nextcloud" "trustedDomains"] [host app-name]]])))
|
|
||||||
:transformations (fn [args _opts]
|
:transformations (fn [args _opts]
|
||||||
(let [kind (get-in args [:resource :kind])]
|
(let [kind (get-in args [:resource :kind])]
|
||||||
(if (some #{kind} ["StatefulSet" "PersistentVolumeClaim" "Ingress"])
|
(if (some #{kind} ["StatefulSet" "PersistentVolumeClaim" "Ingress"])
|
||||||
|
|||||||
Reference in New Issue
Block a user