Skip to content

adaptation,stub: exchange NRI versions in use.#271

Open
klihub wants to merge 3 commits intocontainerd:mainfrom
klihub:devel/version-exchange
Open

adaptation,stub: exchange NRI versions in use.#271
klihub wants to merge 3 commits intocontainerd:mainfrom
klihub:devel/version-exchange

Conversation

@klihub
Copy link
Member

@klihub klihub commented Feb 19, 2026

This PR adds NRI version to the pieces of information exchanged between a plugin and the runtime during plugin registration.

@mikebrow @samuelkarp @chrishenzie I split this out from #265 for easier review. These are self-contained and do not depend on the rest in #265. Some bits there (version based inferred capabilities for old releases) depend on this, but I'm not sure if there is consensus about adding capability advertisement in the first place. If there is we'll just need to merge this first then rebase.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@klihub klihub force-pushed the devel/version-exchange branch from e18227b to ed419da Compare February 25, 2026 12:59
klihub added 2 commits March 3, 2026 09:10
Exchange NRI versions in use during plugin registration. If we
do not get an NRI version from the runtime (too old peer NRI)
try to infer it using the runtime type and version.

The NRI version in use is discovered using the golang runtime
provided build info. For plugins hosted in the main NRI repo
this does not produce any useful result (because NRI is subject
to a replace directive in the plugins' go.mod). Therefore within
the repo we fall back to using a git-describe generated version.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Add version exchange test and related test option to adaptation.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@klihub klihub force-pushed the devel/version-exchange branch from 3edb6e9 to 065ce5b Compare March 3, 2026 07:11
@klihub klihub requested a review from samuelkarp March 4, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants