From 1a6ba991e4be1bf9c7ad762ac1f574ab841d3953 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Wed, 8 Jun 2022 20:17:15 +0200 Subject: [PATCH] fix internal postgres url --- src/main/cljc/dda/c4k_gitea/gitea.cljc | 9 ++++----- src/main/resources/gitea/deployment.yaml | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/cljc/dda/c4k_gitea/gitea.cljc b/src/main/cljc/dda/c4k_gitea/gitea.cljc index 52759cc..2faad60 100644 --- a/src/main/cljc/dda/c4k_gitea/gitea.cljc +++ b/src/main/cljc/dda/c4k_gitea/gitea.cljc @@ -14,12 +14,11 @@ (defmethod yaml/load-resource :gitea [resource-name] (case resource-name ; todo "gitea/secret.yaml" (rc/inline "gitea/secret.yaml") - "gitea/certificate.yaml" (rc/inline "gitea/certificate.yaml") - "gitea/deployments.yaml" (rc/inline "gitea/deployments.yaml") + ; "gitea/certificate.yaml" (rc/inline "gitea/certificate.yaml") + "gitea/deployment.yaml" (rc/inline "gitea/deployment.yaml") "gitea/ingress.yaml" (rc/inline "gitea/ingress.yaml") - "gitea/service-redis.yaml" (rc/inline "gitea/service-redis.yaml") - "gitea/service-webserver.yaml" (rc/inline "gitea/service-webserver.yaml") - "gitea/statefulset.yaml" (rc/inline "gitea/statefulset.yaml") + "gitea/services.yaml" (rc/inline "gitea/services.yaml") + "gitea/volumes.yaml" (rc/inline "gitea/volumes.yaml") (throw (js/Error. "Undefined Resource!"))))) #?(:cljs diff --git a/src/main/resources/gitea/deployment.yaml b/src/main/resources/gitea/deployment.yaml index 1dc1f3c..3933729 100644 --- a/src/main/resources/gitea/deployment.yaml +++ b/src/main/resources/gitea/deployment.yaml @@ -31,13 +31,13 @@ spec: - name: GITEA__database__DB_TYPE value: "postgres" - name: GITEA__database__HOST - value: "postgresql-service.postgres.svc.cluster.local:5432" # Service.Namespace.svc.cluster.local + value: "postgresql-service.default.svc.cluster.local:5432" # Service.Namespace.svc.cluster.local - name: GITEA__database__NAME value: postgres - name: GITEA__database__USER value: gitea - name: GITEA__database__PASSWD - value: gitea + value: gitea-db-user volumeMounts: - name: app-ini-config-volume mountPath: "/tmp/app.ini"