gitea: clean postgres volume from lost+found

This commit is contained in:
Nico Schottelius 2021-06-27 20:09:30 +02:00
parent 9a6f634983
commit 423cf93f1b
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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