Skip to content

Commit

Permalink
fix: add kubectl log command to follow log in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
strivedi-px committed Jun 6, 2024
1 parent 1c8fb93 commit b367cc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration_test/test-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ kubectl logs stork-test -n kube-system -f
for i in $(seq 1 100) ; do
test_status=$(kubectl get pod stork-test -n kube-system -o json | jq ".status.phase" -r)
if [ "$test_status" = "Running" ]; then
echo "Test is still running, status: $test_status"
sleep 5
echo "Test is still running, resuming logs from past 5 seconds, status: $test_status"
kubectl logs stork-test -n kube-system -f --since=10s
else
sleep 5
break
Expand Down

0 comments on commit b367cc2

Please sign in to comment.