diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 14:45:31 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 19:40:51 +0200 |
| commit | 91749524e7c4afc379cd01b6bb85bfb61135553c (patch) | |
| tree | 33f421def170d35f752bb6bd6d40e949d8f9d873 | |
| parent | 94a85bd7756cf02b8d84f7579738f3dbfa96a673 (diff) | |
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 <noreply@anthropic.com>
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
