Skip to content

Commit 96f29c6

Browse files
committed
packages: update nvidia-k8s-device-plugin to v0.18.0
Signed-off-by: Piyush Jena <[email protected]>
1 parent 7a96777 commit 96f29c6

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From 0ae23f93ef41d348a489e9dd2fbc76ef0468005e Mon Sep 17 00:00:00 2001
2+
From: Evan Lezar <[email protected]>
3+
Date: Mon, 10 Mar 2025 14:44:45 +0200
4+
Subject: [PATCH] Ensure that generated CDI specs do not contain
5+
enable-cuda-compat hooks
6+
7+
Signed-off-by: Evan Lezar <[email protected]>
8+
---
9+
internal/cdi/cdi.go | 4 ++++
10+
1 file changed, 4 insertions(+)
11+
12+
diff --git a/internal/cdi/cdi.go b/internal/cdi/cdi.go
13+
index 2b3761d9..810e4395 100644
14+
--- a/internal/cdi/cdi.go
15+
+++ b/internal/cdi/cdi.go
16+
@@ -126,6 +126,8 @@ func New(infolib info.Interface, nvmllib nvml.Interface, devicelib device.Interf
17+
nvcdi.WithDeviceNamers(deviceNamer),
18+
nvcdi.WithVendor(c.vendor),
19+
nvcdi.WithClass("gpu"),
20+
+ // TODO: This should be removed once the use of a NVIDIA Container Toolkit >= v1.17.5 is commonplace.
21+
+ nvcdi.WithDisabledHook(nvcdi.HookEnableCudaCompat),
22+
)
23+
if err != nil {
24+
return nil, fmt.Errorf("failed to create nvcdi library: %v", err)
25+
@@ -154,6 +156,8 @@ func New(infolib info.Interface, nvmllib nvml.Interface, devicelib device.Interf
26+
nvcdi.WithDevRoot(c.devRoot),
27+
nvcdi.WithVendor(c.vendor),
28+
nvcdi.WithMode(mode),
29+
+ // TODO: This should be removed once the use of a NVIDIA Container Toolkit >= v1.17.5 is commonplace.
30+
+ nvcdi.WithDisabledHook(nvcdi.HookEnableCudaCompat),
31+
)
32+
if err != nil {
33+
return nil, fmt.Errorf("failed to create nvcdi library: %v", err)
34+
--
35+
2.51.0
36+

packages/nvidia-k8s-device-plugin/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ path = "../packages.rs"
1212
releases-url = "https://github.com/NVIDIA/k8s-device-plugin/releases"
1313

1414
[[package.metadata.build-package.external-files]]
15-
url = "https://github.com/NVIDIA/k8s-device-plugin/archive/v0.17.3/v0.17.3.tar.gz"
16-
path = "k8s-device-plugin-0.17.3.tar.gz"
17-
sha512 = "18715703dfce6a6e986295dfbdc78180dd5c30566db2b44abc7fc030e6981ada5fd411488564594454a840c3c67b933e0c7e849c2938aa837ac32dd41b3a0140"
15+
url = "https://github.com/NVIDIA/k8s-device-plugin/archive/v0.18.0/v0.18.0.tar.gz"
16+
path = "k8s-device-plugin-0.18.0.tar.gz"
17+
sha512 = "4da24e4e75667209bc1b1ec98cf9895fe0af182934c3867c60ebed154f73d4703d23ff72f44edc2fb2d07cc14c42bb4c19e274628cbbee045ef6b6e1e7b2f0d8"
1818

1919
[build-dependencies]
2020
glibc = { path = "../glibc" }

packages/nvidia-k8s-device-plugin/nvidia-k8s-device-plugin.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%global gorepo k8s-device-plugin
33
%global goimport %{goproject}/%{gorepo}
44

5-
%global gover 0.17.3
5+
%global gover 0.18.0
66
%global rpmver %{gover}
77

88
Name: %{_cross_os}nvidia-k8s-device-plugin
@@ -18,6 +18,8 @@ Source2: nvidia-k8s-device-plugin-conf
1818
Source3: nvidia-k8s-device-plugin-exec-start-conf
1919
Source4: nvidia-k8s-device-plugin-mig-conf
2020

21+
Patch0001: 1001-Ensure-that-generated-CDI-specs-do-not-contain-enabl.patch
22+
2123
BuildRequires: %{_cross_os}glibc-devel
2224
Requires: %{name}(binaries)
2325

0 commit comments

Comments
 (0)