Skip to content

Commit

Permalink
Align nvidia driver root envars
Browse files Browse the repository at this point in the history
Align the envvars used to specify the driver root with
the NVIDIA Container Toolkit (NVIDIA_DRIVER_ROOT).

Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed May 15, 2024
1 parent b106e83 commit 82db50e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cmd/nvidia-mig-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
DefaultHostMigManagerStateFile = "/etc/systemd/system/nvidia-mig-manager.service.d/override.conf"
DefaultHostKubeletSystemdService = "kubelet.service"
DefaultGPUClientsNamespace = "default"
DefaultDriverRoot = "/run/nvidia/driver"
DefaultNvidiaDriverRoot = "/run/nvidia/driver"
DefaultDriverRootCtrPath = "/run/nvidia/driver"
)

Expand Down Expand Up @@ -211,11 +211,10 @@ func main() {
},
&cli.StringFlag{
Name: "driver-root",
Aliases: []string{"t"},
Value: DefaultDriverRoot,
Usage: "Root path to the NVIDIA driver installation. Only used if --cdi-enabled is set.",
Aliases: []string{"nvidia-driver-root", "t"},
Value: DefaultNvidiaDriverRoot,
Destination: &driverRoot,
EnvVars: []string{"DRIVER_ROOT"},
EnvVars: []string{"NVIDIA_DRIVER_ROOT", "DRIVER_ROOT"},
},
&cli.StringFlag{
Name: "driver-root-ctr-path",
Expand Down

0 comments on commit 82db50e

Please sign in to comment.