Skip to content

Commit ae75ec3

Browse files
committed
fix: driver and toolkit ready state file cleanup
1 parent d5750f2 commit ae75ec3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

assets/state-container-toolkit/0500_daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ spec:
8181
privileged: true
8282
seLinuxOptions:
8383
level: "s0"
84+
lifecycle:
85+
preStop:
86+
exec:
87+
command: ["/bin/sh", "-c", "rm -f /run/nvidia/validations/toolkit-ready"]
8488
volumeMounts:
8589
- name: nvidia-container-toolkit-entrypoint
8690
readOnly: true

assets/state-driver/0500_daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ spec:
150150
lifecycle:
151151
preStop:
152152
exec:
153-
command: ["/bin/sh", "-c", "rm -f /run/nvidia/validations/.driver-ctr-ready"]
153+
command: ["/bin/sh", "-c", "rm -f /run/nvidia/validations/.driver-ctr-ready /run/nvidia/validations/driver-ready"]
154154
- image: "FILLED BY THE OPERATOR"
155155
imagePullPolicy: IfNotPresent
156156
name: nvidia-peermem-ctr

0 commit comments

Comments
 (0)