Commit 3af9543
committed
k8s: create workspace group-writable in fs-init (umask 002)
fs-init runs as uid 1001 and mkdir's the work/externals/github dirs at the
default 0755. The pod securityContext uses fsGroup: 1001, so every job
container process is in group 1001 — but 0755 grants the group only r-x, so a
job image running as a non-root uid other than 1001 can't write the workspace
and checkout fails with '.git: Permission denied'.
Set umask 002 in fs-init so those dirs are created 0775 (group-writable),
letting any job user write the workspace via the fsGroup.1 parent cf62bcc commit 3af9543
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments