NVIDIA / k8s-dra-driver

Dynamic Resource Allocation (DRA) for NVIDIA GPUs in Kubernetes
Apache License 2.0
195 stars 36 forks source link

Set PATH per nvidia-smi invocation #111

Closed elezar closed 2 months ago

elezar commented 2 months ago

Since we set PATH globally in the kubeletplugin to allow nvidia-smi to be found, this means that utilities such as mount from the host are also located at this path.

This change ensures that we only set the PATH environment variable when running nvidia-smi.

Fixes #106

elezar commented 2 months ago

Closing as a duplicate of #110