From 55a3aba4986819ec2a8fa70b3abb1fe240a22b4a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 9 Jan 2026 14:45:31 +0200 Subject: Fix nested .ssh directory issue Remove extra .ssh directory creation in initContainer. The emptyDir mount point itself is /home/git/.ssh. Co-Authored-By: Claude Sonnet 4.5 --- f3s/git-server/helm-chart/templates/deployment.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'f3s/git-server') diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index 2ebb095..7df943e 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -26,11 +26,11 @@ spec: mkdir -p /ssh-init chown -R 0:0 /ssh-init # Setup authorized_keys with correct ownership - mkdir -p /ssh-git/.ssh - cp /ssh-keys-secret/authorized_keys /ssh-git/.ssh/authorized_keys - chown -R 1000:1000 /ssh-git/.ssh - chmod 700 /ssh-git/.ssh - chmod 600 /ssh-git/.ssh/authorized_keys + # The /ssh-git mount point IS the .ssh directory + cp /ssh-keys-secret/authorized_keys /ssh-git/authorized_keys + chown -R 1000:1000 /ssh-git + chmod 700 /ssh-git + chmod 600 /ssh-git/authorized_keys volumeMounts: - name: ssh-host-keys mountPath: /ssh-init -- cgit v1.2.3