Skip to content

Show why urunc falls back to urunc.json#593

Closed
mugiwaraluffy56 wants to merge 1 commit intourunc-dev:mainfrom
mugiwaraluffy56:annotation-config-diagnostics
Closed

Show why urunc falls back to urunc.json#593
mugiwaraluffy56 wants to merge 1 commit intourunc-dev:mainfrom
mugiwaraluffy56:annotation-config-diagnostics

Conversation

@mugiwaraluffy56
Copy link
Copy Markdown

Description

This makes the config fallback path easier to understand when urunc does not get a complete config from OCI annotations.

If the required annotations are missing or incomplete, urunc now logs the missing fields before trying urunc.json. It also logs which config source it ended up using. That should make it easier to debug containerd or Docker setups where image annotations are not reaching the OCI runtime.

I also added tests for the missing required field list and updated the packaging docs with a short note about the fallback diagnostics.

Related issues

None. This is a small diagnostic improvement.

How was this tested?

  • GOOS=linux go test -exec=/usr/bin/true ./pkg/unikontainers
  • GOOS=linux go test -exec=/usr/bin/true ./pkg/...
  • ARCH=arm64 CNTR_OPTS='run --rm' make lint

Native go test on this macOS host cannot build these Linux runtime packages directly because of Linux-only syscall and netlink usage.

LLM usage

Assisted by GPT-5.

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

Signed-off-by: puneeth_aditya_5656 <myakampuneeth@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 30, 2026

Deploy Preview for urunc ready!

Name Link
🔨 Latest commit d63f8b8
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/69f2f656dd6e64000739e285
😎 Deploy Preview https://deploy-preview-593--urunc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cmainas
Copy link
Copy Markdown
Contributor

cmainas commented Apr 30, 2026

Hello @mugiwaraluffy56 ,

please open an issue before submitting a PR. The PR is not the place to discuss about new features, suggestions or bug reports. We will review only PRs which are associated with a validated issue.

@mugiwaraluffy56
Copy link
Copy Markdown
Author

Hello @mugiwaraluffy56 ,

please open an issue before submitting a PR. The PR is not the place to discuss about new features, suggestions or bug reports. We will review only PRs which are associated with a validated issue.

sorry @cmainas, I wont repeat this again. I want to join the urunc community and contribute as much as i can to this amazing project :).

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.

2 participants