Skip to content

[nri] only restrict management CDI devices to the toolkit namespace#1854

Open
tariq1890 wants to merge 1 commit into
mainfrom
revise-nri-namespace-check
Open

[nri] only restrict management CDI devices to the toolkit namespace#1854
tariq1890 wants to merge 1 commit into
mainfrom
revise-nri-namespace-check

Conversation

@tariq1890
Copy link
Copy Markdown
Contributor

When we had first implemented the NRI Plugin, we only expected it to be used to inject GPU management CDI devices. The current namespace check worked fine with that assumption. However, we have received requests to allow for the injection of CDI devices into gpu workload pods that don't need GPU management access. As this namespace check is not really required for workload pods, we update the namespace check to only apply to pods that explicitly request the GPU management CDI device.

@coveralls
Copy link
Copy Markdown

coveralls commented May 27, 2026

Coverage Report for CI Build 26546901794

Coverage decreased (-0.006%) to 43.49%

Details

  • Coverage decreased (-0.006%) from the base build.
  • Patch coverage: 6 uncovered changes across 1 file (0 of 6 lines covered, 0.0%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
cmd/nvidia-ctk-installer/container/runtime/nri/plugin.go 6 0 0.0%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 14978
Covered Lines: 6514
Line Coverage: 43.49%
Coverage Strength: 0.48 hits per line

💛 - Coveralls

When we had first implemented the NRI Plugin, we only expected it to be
used to inject GPU management CDI devices. The current namespace check
worked fine with that assumption. However, we have received requests to
allow for the injection of CDI devices into gpu workload pods that don't
need GPU management access. As this namespace check is not really required
for workload pods, we update the namespace check to only apply to pods
that explicitly request the GPU management CDI device.

Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
@tariq1890 tariq1890 force-pushed the revise-nri-namespace-check branch from 2803646 to aa2b174 Compare May 28, 2026 00:26
@tariq1890 tariq1890 requested a review from cdesiniotis May 28, 2026 01:10
Comment thread cmd/nvidia-ctk-installer/container/runtime/nri/plugin.go
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