Skip to content

Commit c2d8b52

Browse files
committed
Rollout for MicroShift without healthcheck cmd
1 parent 2441f92 commit c2d8b52

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

scripts/ci-nvidia-device-plugin/tests/04-verify-device-plugin.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
set -xeuo pipefail
44

5-
sudo microshift healthcheck \
6-
--namespace nvidia-device-plugin \
7-
--daemonsets nvidia-device-plugin-daemonset
5+
if microshift --help | grep -q "healthcheck"; then
6+
sudo microshift healthcheck \
7+
--namespace nvidia-device-plugin \
8+
--daemonsets nvidia-device-plugin-daemonset
9+
else
10+
oc rollout status \
11+
--timeout=180s \
12+
-n nvidia-device-plugin daemonset/nvidia-device-plugin-daemonset
13+
fi
814

915
retries=20
1016
while [ ${retries} -gt 0 ] ; do

0 commit comments

Comments
 (0)