Skip to content

fix: use copy-self for supervisor init container (scratch image compat)#5

Merged
pdettori merged 1 commit into
mvpfrom
fix/copy-self-init-container
Jun 4, 2026
Merged

fix: use copy-self for supervisor init container (scratch image compat)#5
pdettori merged 1 commit into
mvpfrom
fix/copy-self-init-container

Conversation

@pdettori
Copy link
Copy Markdown

@pdettori pdettori commented Jun 4, 2026

Summary

  • Switch init container from sh -c "cp ..." to the supervisor binary's built-in copy-self subcommand
  • Remove obsolete DtachBinaryPath config and --dtach-binary-path CLI flag
  • Update SupervisorBinaryPath default from /usr/local/bin/openshell-sandbox to /openshell-sandbox (scratch image layout)

The mvp-v2 supervisor image is FROM scratch — it contains only the static binary at /openshell-sandbox. The previous sh -c "cp ..." approach fails because there's no shell in the image. The copy-self subcommand is what the upstream Rust K8s driver already uses.

Fixes: kagenti/kagenti#1815

Test plan

  • Unit tests updated and passing (18/18)
  • Build compiles cleanly
  • Deploy with mvp-v2 images and verify sandbox creation succeeds

Assisted-By: Claude Code

The mvp-v2 supervisor image switched from Ubuntu to scratch — it only
contains the static openshell-sandbox binary at /openshell-sandbox.
The previous init container used sh -c "cp ..." which fails because
there's no shell in the image.

Switch to the supervisor binary's built-in copy-self subcommand, which
the upstream Rust K8s driver already uses. Also remove the dtach binary
config (not present in mvp-v2 images).

Fixes: kagenti/kagenti#1815

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
@pdettori pdettori merged commit 58cd8d4 into mvp Jun 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant