From 1a1a001656d8d6a8a848e36b251b3bcba41ea0c9 Mon Sep 17 00:00:00 2001 From: luhahn Date: Wed, 23 Sep 2020 03:22:20 +0000 Subject: [PATCH] Fix ssh permission denied(publickey) at reinstalling the chart without deleting pvc (#25) Fix ssh permission denied(publickey) at reinstalling the chart without deleting pvc Co-authored-by: Lucas Hahn Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/25 Reviewed-by: techknowlogick Reviewed-by: Lunny Xiao --- Chart.yaml | 2 +- templates/gitea/statefulset.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 8ae5453..ec79b7e 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gitea description: Gitea Helm chart for Kubernetes type: application -version: 1.4.6 +version: 1.4.7 appVersion: 1.12.4 icon: https://docs.gitea.io/images/gitea.png diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index 31001a9..2413c44 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -25,6 +25,8 @@ spec: env: - name: SCRIPT value: &script |- + mkdir -p /data/git/.ssh + chmod 700 /data/git/.ssh mkdir -p /data/gitea/conf cp /etc/gitea/conf/app.ini /data/gitea/conf/app.ini chmod a+rwx /data/gitea/conf/app.ini