Skip to content

fix(images): Accept http(s)+oci image references - #437

Draft
craciunoiuc wants to merge 1 commit into
prod-stagingfrom
craciunoiuc/support-http-oci
Draft

fix(images): Accept http(s)+oci image references#437
craciunoiuc wants to merge 1 commit into
prod-stagingfrom
craciunoiuc/support-http-oci

Conversation

@craciunoiuc

@craciunoiuc craciunoiuc commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Accepts http+oci:// / https+oci:// image references, so an OCI layout served over HTTP works wherever a registry reference does. The node is what fetches it, so the CLI carries the URI through verbatim.

The reference grammar and normalization move to unikraft.com/x/image-spec/imageref, replacing the CLI's internal/x/reference fork.

Depends on: unikraft-cloud/x#368

GitHub-Fixes: TOOL-1093

@craciunoiuc
craciunoiuc requested review from jedevc and a balanced review from Copilot August 4, 2026 13:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds parsing and round-tripping support for http+oci and https+oci instance image references.

Changes:

  • Introduces scheme-aware image parsing and wire serialization.
  • Updates instance creation/editing and image listing behavior.
  • Adds unit, integration, and help-output coverage.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
internal/types/image.go Preserves URI-based image references.
internal/types/image_test.go Tests image reference behavior.
internal/images/images.go Adds scheme-aware parsing.
internal/images/images_test.go Tests supported formats and errors.
internal/cmd/instances.go Sends URI references to the API.
internal/cmd/images.go Loads URI-backed platform images.
cmd/unikraft/testdata/TestHelp/instances Updates generated help expectations.
cmd/unikraft/integration/instance_http_oci_test.go Adds end-to-end coverage.

Comment thread internal/images/images.go Outdated
Comment thread internal/cmd/images.go Outdated
Comment thread internal/cmd/instances.go Outdated
@craciunoiuc
craciunoiuc force-pushed the craciunoiuc/support-http-oci branch from 7fa36ff to cdca2ea Compare August 4, 2026 16:01
Comment thread cmd/unikraft/integration/instance_http_oci_test.go Outdated
Comment thread internal/types/image.go Outdated
Comment thread internal/types/image.go Outdated
Comment thread internal/images/images.go Outdated
@craciunoiuc

Copy link
Copy Markdown
Contributor Author

All comments legitimate, will address

@craciunoiuc craciunoiuc reopened this Aug 19, 2026
@craciunoiuc
craciunoiuc force-pushed the craciunoiuc/support-http-oci branch from cdca2ea to 7673dc5 Compare August 20, 2026 12:13
An http(s)+oci image is fetched by the platform, so the CLI only
carries the URI through, verbatim.

Parsing moves to image-spec's imageref.

GitHub-Fixes: TOOL-1093

Signed-off-by: Cezar Craciunoiu <cezar@unikraft.io>
@craciunoiuc
craciunoiuc force-pushed the craciunoiuc/support-http-oci branch from 7673dc5 to 4efad6e Compare August 20, 2026 13:04
@craciunoiuc

Copy link
Copy Markdown
Contributor Author

addressed

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.

3 participants