From 2f9baa5db131b6b49470f3b06c77de42f6f565b9 Mon Sep 17 00:00:00 2001 From: fanhy36 Date: Mon, 15 Jun 2026 23:18:38 +0800 Subject: [PATCH] feat: Add CUDA_DISABLE_CONTROL_DP environment variable support Adds a new environment variable to allow disabling CUDA control functionality at the device plugin level. Signed-off-by: fanhy36 --- pkg/plugin/server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/plugin/server.go b/pkg/plugin/server.go index b0851a6..4c58ef8 100644 --- a/pkg/plugin/server.go +++ b/pkg/plugin/server.go @@ -453,6 +453,11 @@ func (plugin *nvidiaDevicePlugin) Allocate(ctx context.Context, reqs *pluginapi. break } } + + if !found && os.Getenv("CUDA_DISABLE_CONTROL_DP") != "" { + found = true + } + if !found { response.Mounts = append(response.Mounts, &pluginapi.Mount{ContainerPath: "/etc/ld.so.preload", HostPath: hostHookPath + "/ld.so.preload",