Skip to content

Comments

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>
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>
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.

1 participant