fix(worker): create overlay dirs in git-clone init container

The worker container overlay mounts (deliverables, scratchpad,
playwright-cli) failed because /repo is read-only and the overlay
mountpoints at /repo/.shannon/* didn't exist. The init container now
creates these directories after cloning the repo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Test User
2026-04-21 15:52:54 +00:00
parent 3f1552d007
commit df2df16531
+4 -2
View File
@@ -72,8 +72,10 @@ export function buildJobSpec(params: JobParams): k8s.V1Job {
initContainers.push({
name: 'git-clone',
image: 'alpine/git:latest',
command: ['git'],
args: cloneArgs,
command: ['sh', '-c'],
args: [
`git clone --depth 1 "${params.gitUrl}" "${REPO_MOUNT_PATH}" && mkdir -p "${REPO_MOUNT_PATH}/.shannon/deliverables" "${REPO_MOUNT_PATH}/.shannon/scratchpad" "${REPO_MOUNT_PATH}/.shannon/.playwright-cli"`,
],
volumeMounts: [{ name: 'repo', mountPath: REPO_MOUNT_PATH }],
});
} else if (params.repoPath) {