We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77fe227 commit d49345aCopy full SHA for d49345a
1 file changed
helm/templates/loadgenerator.yaml
@@ -74,7 +74,7 @@ spec:
74
RETRY_INTERVAL=10
75
for i in $(seq 1 $MAX_RETRIES); do
76
echo "Attempt $i: Pinging frontend: ${FRONTEND_ADDR}..."
77
- STATUSCODE=$(wget --server-response http://${FRONTEND_ADDR} 2>&1 | awk '/^ HTTP/{print $2}')
+ STATUSCODE=$(wget --server-response http://${FRONTEND_ADDR} 2>&1 | awk '/^ HTTP/{code=$2} END{print code}')
78
if [ $STATUSCODE -eq 200 ]; then
79
echo "Frontend is reachable."
80
exit 0
0 commit comments