From 61a08c8432d56e68a2155f0ac6a28d08b9568a27 Mon Sep 17 00:00:00 2001 From: Dan Manners Date: Sat, 16 Sep 2023 10:18:40 -0400 Subject: [PATCH] Setting additional values --- manifests/workloads/gitea/app.ini.yaml | 14 ++++++++++++++ manifests/workloads/gitea/kustomization.yaml | 1 + manifests/workloads/gitea/values.yaml | 7 ++++--- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 manifests/workloads/gitea/app.ini.yaml diff --git a/manifests/workloads/gitea/app.ini.yaml b/manifests/workloads/gitea/app.ini.yaml new file mode 100644 index 00000000..ce20c874 --- /dev/null +++ b/manifests/workloads/gitea/app.ini.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: gitea-app-ini-plaintext +data: + cron.archive_cleanup: | + ENABLED=true + actions: | + ENABLED=true + markup: | + ENABLED=true + service: | + DISABLE_REGISTRATION=true + ENABLE_BASIC_AUTHENTICATION=false diff --git a/manifests/workloads/gitea/kustomization.yaml b/manifests/workloads/gitea/kustomization.yaml index 8b1474c0..8a4db9ec 100644 --- a/manifests/workloads/gitea/kustomization.yaml +++ b/manifests/workloads/gitea/kustomization.yaml @@ -5,6 +5,7 @@ namespace: git resources: - namespace.yaml - external-dns.yaml +- app.ini.yaml components: - database diff --git a/manifests/workloads/gitea/values.yaml b/manifests/workloads/gitea/values.yaml index 949283a3..a8864978 100644 --- a/manifests/workloads/gitea/values.yaml +++ b/manifests/workloads/gitea/values.yaml @@ -4,6 +4,7 @@ global: persistence: storageClass: ceph-rbd + size: 40Gi service: http: @@ -36,6 +37,9 @@ gitea: existingSecret: gitea-creds config: APP_NAME: "Not Your Mommas's GitHub" + additionalConfigSources: + - configMap: + name: gitea-app-ini-plaintext additionalConfigFromEnvs: - name: GITEA__DATABASE__DB_TYPE value: postgres @@ -53,9 +57,6 @@ gitea: secretKeyRef: name: gitdb-user-creds key: GITEA_DB_PASSWORD - # SERVICE CONFIGURATION - - name: DISABLE_REGISTRATION - value: "true" postgresql-ha: enabled: false