Skip to content

Commit 96f36ba

Browse files
committed
Fixing build failure
Signed-off-by: Serguei Bezverkhi <[email protected]>
1 parent 8c28ae6 commit 96f36ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hack/e2e-livenessprobe.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -x
33

44
## This file is for livenessprove which runs in a pair with csi
55
## hostpath
@@ -15,8 +15,8 @@ if [ x${TRAVIS} = x"true" ] ; then
1515
SKIP="WithCapacity|NodeUnpublishVolume|NodePublishVolume"
1616
fi
1717

18-
git clone https://github.com/kubernetes-csi/drivers ./"$APP"
19-
pushd hostpathplugin
18+
git clone https://github.com/kubernetes-csi/drivers $GOPATH/src/github.com/kubernetes-csi/drivers
19+
pushd $GOPATH/src/github.com/kubernetes-csi/drivers
2020
# Build
2121
make hostpath; ret=$?
2222
if [ $ret -ne 0 ]; then
@@ -37,7 +37,7 @@ sudo ./bin/livenessprobe --csi-address=$CSI_ENDPOINT &
3737
sleep 3
3838

3939
# Requesting health
40-
health=$(curl -I http://localhost:9808 | grep HTTP | awk '{print $2}'
40+
health=$(curl -I http://localhost:9808/healthz | grep HTTP | awk '{print $2}')
4141
if [[ "x$health" != "x200" ]]; then
4242
echo "Health check failed, but it was not supposed to, exiting..."
4343
exit 1
@@ -48,7 +48,7 @@ sudo kill -9 $(pidof hostpathplugin)
4848
sleep 3
4949

5050
# Requesting health, should fail since hostpathplugin is gone
51-
health=$(curl -I http://localhost:9808 | grep HTTP | awk '{print $2}'
51+
health=$(curl -I http://localhost:9808/healthz| grep HTTP | awk '{print $2}')
5252
if [[ "x$health" != "x500" ]]; then
5353
echo "Health check did not detect driver failure, returned code: $health, exiting..."
5454
exit 1

0 commit comments

Comments
 (0)