From 9d5cc765674ef2ea031a595ece6c882c4cb7b844 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 27 Jun 2021 20:17:44 +0200 Subject: [PATCH] Update the variable for domain name, skip rmdir for the moment --- apps/gitea/Chart.yaml | 2 +- apps/gitea/templates/deployment.yaml | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/gitea/Chart.yaml b/apps/gitea/Chart.yaml index 8c082a7..3034fd4 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.5 +version: 0.1.8 # 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 684a4e1..a40a6ce 100644 --- a/apps/gitea/templates/deployment.yaml +++ b/apps/gitea/templates/deployment.yaml @@ -24,15 +24,17 @@ 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" + # This does not work: the running postgres will block this + # init container to work (mount) the volume again + # - name: remove-lost-found + # image: busybox + # command: + # - sh + # - -c + # - test -d /data/lost+found && rmdir /data/lost+found || exit 0 + # volumeMounts: + # - name: postgres-data + # mountPath: "/data" containers: # This container will only start *after* the cert has been placed - name: nginx @@ -64,7 +66,7 @@ spec: value: "1000" - name: USER_GID value: "1000" - - name: GITEA__DOMAIN + - name: GITEA__server__DOMAIN value: "{{ tpl .Values.fqdn . }}" - name: GITEA__database__DB_TYPE value: "postgres"