fix(stack): preload runtime images via k3s crictl#510
Draft
bussyjd wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the noisy k3d image import failure seen during dev
obol stack upfor public multi-arch runtime images such as OpenClaw and Hermes.Instead of host
docker pull+k3d image import, upstream runtime preloads now run inside the k3d server node withcrictl pull, with ak3s crictl pullfallback. Locally built Obol dev images still use the existing cachedk3d image importpath.Root Cause
k3d image importsaves/imports the public multi-arch OCI index. On Docker Desktop/containerd-store setups, the saved tar can reference sibling platform manifests that are not present in the local content store. The node-side import then logs errors likecontent digest sha256:... not found; in the observed case, the missing digest was the linux/amd64 child manifest while the host was using linux/arm64 content.Changes
devPreloadImages()throughdocker exec k3d-<cluster>-server-0 crictl pull <ref>.docker exec ... k3s crictl pull <ref>when standalonecrictlis unavailable or fails.k3d image importfor locally built images only.Validation
go test ./internal/stack -count=1just dev-frontendusingOBOL_DEVELOPMENT=true; rollout is live onlocalhost:54103/obol-stack-front-end:dev@sha256:8b3f232e9ea19461cab9a4e5da2ef2c2a6fc2ffaf609c1003ef247b5672075f5.