From 5f016ab2176fda021eab7414660832b97c590fe7 Mon Sep 17 00:00:00 2001 From: GigiaJ Date: Sun, 23 Nov 2025 15:35:30 -0600 Subject: [PATCH] Update to use the current config style --- iac/src/main/k8s/services/gitea/service.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iac/src/main/k8s/services/gitea/service.cljs b/iac/src/main/k8s/services/gitea/service.cljs index b2b8330..8935a9e 100644 --- a/iac/src/main/k8s/services/gitea/service.cljs +++ b/iac/src/main/k8s/services/gitea/service.cljs @@ -1,11 +1,11 @@ (ns k8s.services.gitea.service) (def config - {:stack [:vault-secrets :deployment :service :ingress] + {:stack [:vault:prepare :k8s:deployment :k8s:service :k8s:httproute] :image-port 3000 :app-namespace "generic" :app-name "gitea" - :deployment-opts {:spec {:template {:spec {:initContainers [ + :k8s:deployment-opts {:spec {:template {:spec {:initContainers [ {:name "init-permissions" :image "busybox:latest" :command ["sh" "-c" "chown -R 1000:1000 /var/lib/gitea && chown -R 1000:1000 /etc/gitea"] @@ -21,4 +21,5 @@ :volumes [{:name "gitea-data" :hostPath {:path "/opt/gitea/data" :type "DirectoryOrCreate"}} {:name "gitea-config" :hostPath {:path "/opt/gitea/config" :type "DirectoryOrCreate"}} {:name "timezone" :hostPath {:path "/etc/timezone" :type "File"}} - {:name "localtime" :hostPath {:path "/etc/localtime" :type "File"}}]}}}}}) + {:name "localtime" :hostPath {:path "/etc/localtime" :type "File"}}]}}}} + :k8s:httproute-opts {:spec {::hostnames ['host]}}})