From 423cf93f1b38751dd01bab87da76da53e19da611 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 27 Jun 2021 20:09:30 +0200 Subject: [PATCH] gitea: clean postgres volume from lost+found --- apps/gitea/Chart.yaml | 2 +- apps/gitea/templates/deployment.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/gitea/Chart.yaml b/apps/gitea/Chart.yaml index 28b64a0..8c082a7 100644 --- a/apps/gitea/Chart.yaml +++ b/apps/gitea/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.3 +version: 0.1.5 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/apps/gitea/templates/deployment.yaml b/apps/gitea/templates/deployment.yaml index a508e46..684a4e1 100644 --- a/apps/gitea/templates/deployment.yaml +++ b/apps/gitea/templates/deployment.yaml @@ -24,6 +24,15 @@ spec: volumeMounts: - name: etcletsencrypt mountPath: "/etc/letsencrypt" + - name: remove-lost-found + image: busybox + command: + - sh + - -c + - test -d /data/lost+found && rmdir /data/lost+found + volumeMounts: + - name: postgres-data + mountPath: "/data" containers: # This container will only start *after* the cert has been placed - name: nginx @@ -55,6 +64,8 @@ spec: value: "1000" - name: USER_GID value: "1000" + - name: GITEA__DOMAIN + value: "{{ tpl .Values.fqdn . }}" - name: GITEA__database__DB_TYPE value: "postgres" - name: GITEA__database__HOST