Repository navigation
vendor: tags.cncf.io/container-device-interface 04278701a635 - #14043
Merged
Merged
Conversation
Removes some dependencies, and fixes some concurrency issues. full diff: cncf-tags/container-device-interface@05ae4b5...0427870 Signed-off-by: Sebastiaan van Stijn <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR vendors an updated snapshot of tags.cncf.io/container-device-interface into containerd, aiming to reduce external dependencies and improve thread-safety around the CDI spec cache and parsing.
Changes:
- Switch CDI spec YAML handling to
go.yaml.in/yaml/v3(and adjust marshaling/unmarshaling). - Improve cache concurrency by moving to
sync.RWMutex, reducing lock hold time inInjectDevices, and cloning returned error slices/maps to avoid sharing internal state. - Bump the vendored
tags.cncf.io/container-device-interfacemodule version (plus correspondinggo.mod/go.sum/vendor/modules.txtupdates).
Reviewed changes
Copilot reviewed 1 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| vendor/tags.cncf.io/container-device-interface/pkg/cdi/spec.go | Updates YAML encoding/decoding implementation and strictness behavior for spec parsing. |
| vendor/tags.cncf.io/container-device-interface/pkg/cdi/cache.go | Refactors cache locking and error accessors to reduce contention and avoid exposing mutable internal data. |
| vendor/modules.txt | Updates the vendored module version metadata for container-device-interface. |
| go.sum | Updates checksums for the new container-device-interface pseudo-version. |
| go.mod | Updates the required container-device-interface pseudo-version. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
fuweid
approved these changes
Aug 26, 2026
samuelkarp
approved these changes
Aug 26, 2026
Member
Author
|
I'm trying to get the final patches in in upstream and to get new tags (so mostly trying to keep in sync already) |
This was referenced Sep 15, 2026
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.
Removes some dependencies, and fixes some concurrency issues.
full diff: cncf-tags/container-device-interface@05ae4b5...0427870