Skip to content

Commit d5d906a

Browse files
lengrongfulengrongfu
authored andcommitted
replace CONTAINER_DRIVER_ROOT to DRIVER_ROOT_CTR_PATH
Signed-off-by: rongfu.leng <[email protected]>
1 parent 32805fe commit d5d906a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

cmd/nvidia-dra-plugin/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func newApp() *cli.App {
105105
Value: "/driver-root",
106106
Usage: "the path where the NVIDIA driver root is mounted in the container; used for generating CDI specifications",
107107
Destination: &flags.containerDriverRoot,
108-
EnvVars: []string{"CONTAINER_DRIVER_ROOT"},
108+
EnvVars: []string{"DRIVER_ROOT_CTR_PATH"},
109109
},
110110
&cli.StringFlag{
111111
Name: "nvidia-ctk-path",

deployments/helm/k8s-dra-driver/templates/kubeletplugin.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ spec:
7575
value: "{{ .Values.nvidiaCtkPath }}"
7676
- name: NVIDIA_DRIVER_ROOT
7777
value: "{{ .Values.nvidiaDriverRoot }}"
78+
- name: DRIVER_ROOT_CTR_PATH
79+
value: "{{ .Values.driverRootCtrPath }}"
7880
- name: NVIDIA_VISIBLE_DEVICES
7981
value: void
8082
- name: CDI_ROOT

deployments/helm/k8s-dra-driver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
# For driver installed directly on a host, a value of `/` is used.
2323
nvidiaDriverRoot: /
2424

25+
# the path where the NVIDIA driver root is mounted in the container; used for generating CDI specifications
26+
driverRootCtrPath: /driver-root
27+
2528
# Specify the path of CTK binary (nvidia-ctk) on the host,
2629
# as it should appear in the the generated CDI specification.
2730
# The path depends on the system that runs on the node.

0 commit comments

Comments
 (0)