Skip to content

Emit a runtime-neutral OCI spec. - #1188

Open
Jing (milantracy) wants to merge 1 commit into
agent-substrate:mainfrom
milantracy:spec
Open

Emit a runtime-neutral OCI spec.#1188
Jing (milantracy) wants to merge 1 commit into
agent-substrate:mainfrom
milantracy:spec

Conversation

@milantracy

Copy link
Copy Markdown
Contributor

atelet's spec was written for runsc: a hardcoded runsc hostname, CRI pause/sandbox annotations and dev.gvisor.spec.mount.* hints. The micro-VM shim compensated by rewriting every spec at runtime (ensureKataCompatibleSpec), swapping the whole mount set and rebuilding it from one hand-written builder per volume kind — so a volume kind atelet learned about reached the guest only once the shim was taught about it too.

atelet now emits a spec that names no runtime, and each ateom shapes it for the runtime it drives. Whatever atelet adds therefore reaches both, and a bind the micro-VM shaper cannot place in the guest is an error rather than a silent drop.

Fixes #709.

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

atelet's spec was written for runsc: a hardcoded `runsc` hostname, CRI
pause/sandbox annotations and `dev.gvisor.spec.mount.*` hints. The
micro-VM shim compensated by rewriting every spec at runtime
(ensureKataCompatibleSpec), swapping the whole mount set and rebuilding
it from one hand-written builder per volume kind — so a volume kind
atelet learned about reached the guest only once the shim was taught
about it too.

atelet now emits a spec that names no runtime, and each ateom shapes it
for the runtime it drives. Whatever atelet adds therefore reaches both,
and a bind the micro-VM shaper cannot place in the guest is an error
rather than a silent drop.

Fixes agent-substrate#709.
@eliranw

eliranw commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

in general LGTM 👍

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.

atelet doesn't emit runtime-neutral OCI specs

3 participants