Update Nextcloud to current format

This commit is contained in:
2025-10-19 01:45:53 -05:00
parent a8f60d8ec9
commit 0b3e6ff2bd

View File

@@ -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"])