File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -e
2
+ set -x
3
3
4
4
# # This file is for livenessprove which runs in a pair with csi
5
5
# # hostpath
@@ -15,8 +15,8 @@ if [ x${TRAVIS} = x"true" ] ; then
15
15
SKIP=" WithCapacity|NodeUnpublishVolume|NodePublishVolume"
16
16
fi
17
17
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
20
20
# Build
21
21
make hostpath; ret=$?
22
22
if [ $ret -ne 0 ]; then
@@ -37,7 +37,7 @@ sudo ./bin/livenessprobe --csi-address=$CSI_ENDPOINT &
37
37
sleep 3
38
38
39
39
# 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}' )
41
41
if [[ " x$health " != " x200" ]]; then
42
42
echo " Health check failed, but it was not supposed to, exiting..."
43
43
exit 1
@@ -48,7 +48,7 @@ sudo kill -9 $(pidof hostpathplugin)
48
48
sleep 3
49
49
50
50
# 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}' )
52
52
if [[ " x$health " != " x500" ]]; then
53
53
echo " Health check did not detect driver failure, returned code: $health , exiting..."
54
54
exit 1
You can’t perform that action at this time.
0 commit comments