Skip to content

Commit

Permalink
replace CONTAINER_DRIVER_ROOT to DRIVER_ROOT_CTR_PATH
Browse files Browse the repository at this point in the history
Signed-off-by: rongfu.leng <[email protected]>
  • Loading branch information
lengrongfu authored and lengrongfu committed Dec 17, 2024
1 parent 32805fe commit d5d906a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nvidia-dra-plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func newApp() *cli.App {
Value: "/driver-root",
Usage: "the path where the NVIDIA driver root is mounted in the container; used for generating CDI specifications",
Destination: &flags.containerDriverRoot,
EnvVars: []string{"CONTAINER_DRIVER_ROOT"},
EnvVars: []string{"DRIVER_ROOT_CTR_PATH"},
},
&cli.StringFlag{
Name: "nvidia-ctk-path",
Expand Down
2 changes: 2 additions & 0 deletions deployments/helm/k8s-dra-driver/templates/kubeletplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ spec:
value: "{{ .Values.nvidiaCtkPath }}"
- name: NVIDIA_DRIVER_ROOT
value: "{{ .Values.nvidiaDriverRoot }}"
- name: DRIVER_ROOT_CTR_PATH
value: "{{ .Values.driverRootCtrPath }}"
- name: NVIDIA_VISIBLE_DEVICES
value: void
- name: CDI_ROOT
Expand Down
3 changes: 3 additions & 0 deletions deployments/helm/k8s-dra-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# For driver installed directly on a host, a value of `/` is used.
nvidiaDriverRoot: /

# the path where the NVIDIA driver root is mounted in the container; used for generating CDI specifications
driverRootCtrPath: /driver-root

# Specify the path of CTK binary (nvidia-ctk) on the host,
# as it should appear in the the generated CDI specification.
# The path depends on the system that runs on the node.
Expand Down

0 comments on commit d5d906a

Please sign in to comment.