From 36b0b83b2670f1847866ea61d35f388f7297d775 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Mon, 21 Apr 2025 21:16:02 +0200 Subject: [PATCH] gitea switch to database from cloudnativepg --- apps/gitea/kustomization.yaml | 2 +- apps/gitea/release.yaml | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/gitea/kustomization.yaml b/apps/gitea/kustomization.yaml index f7e3a89..2eb512f 100644 --- a/apps/gitea/kustomization.yaml +++ b/apps/gitea/kustomization.yaml @@ -2,6 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - namespace.yaml + - postgres-cluster.yaml - release.yaml - backups.yaml - - postgres-cluster.yaml diff --git a/apps/gitea/release.yaml b/apps/gitea/release.yaml index 57d72e6..8cdb25d 100644 --- a/apps/gitea/release.yaml +++ b/apps/gitea/release.yaml @@ -28,7 +28,7 @@ spec: enabled: false postgresql: - enabled: true + enabled: false primary: persistence: enabled: true @@ -55,9 +55,18 @@ spec: storageClass: mayastor-single-hdd gitea: + additionalConfigFromEnvs: + - name: GITEA__DATABASE__PASSWD + valueFrom: + secretKeyRef: + name: gitea-postgresql-cluster-app + key: password config: database: DB_TYPE: postgres + HOST: gitea-postgresql-cluster-rw:5432 + NAME: app + USER: app indexer: ISSUE_INDEXER_TYPE: bleve REPO_INDEXER_ENABLED: true