Skip to content

Commit

Permalink
add imex mount to driver test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
guptaNswati committed Oct 31, 2024
1 parent 17eb4bc commit 4fa5aca
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions internal/state/testdata/golden/driver-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,31 @@ spec:
name: sysfs-memory-online
- mountPath: /lib/firmware
name: nv-firmware
- mountPath: /etc/nvidia-imex
name: imex-config
hostPID: true
initContainers:
- args:
- |
IMEX_NODES_CONFIG_FILE=/etc/nvidia-imex/nodes_config.cfg
if [[ -f /host/${IMEX_NODES_CONFIG_FILE} ]]; then
echo "Copying host IMEX nodes config"
cp /host/${IMEX_NODES_CONFIG_FILE} ${IMEX_NODES_CONFIG_FILE}
fi
command:
- /bin/bash
- -c
image: nvcr.io/nvidia/driver:525.85.03-ubuntu22.04
name: check-imex-config
securityContext:
privileged: true
volumeMounts:
- mountPath: /host/etc
name: host-etc
readOnly: true
subPath: etc
- mountPath: /etc/nvidia-imex
name: imex-config
- args:
- uninstall_driver
command:
Expand Down Expand Up @@ -292,6 +315,12 @@ spec:
path: /run/nvidia/driver/lib/firmware
type: DirectoryOrCreate
name: nv-firmware
- hostPath:
path: /etc
type: Directory
name: host-etc
- emptyDir: {}
name: imex-config
updateStrategy:
type: OnDelete
---

0 comments on commit 4fa5aca

Please sign in to comment.