Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Dec 6, 2023
1 parent 7f757e8 commit 401d7be
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration-test/scripts/rollingupdate-kubernetes-cr-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ then
echo "Pods did not get ready"
kubectl -n $NAMESPACE events $APP_NAME
kubectl -n $NAMESPACE describe deployment $APP_NAME

pods=$(kubectl get pods -o jsonpath="{.items..metadata.name}" -n $NAMESPACE)
IFS=' ' read -ra pods_array <<< "$pods"
for p in "${pods_array[@]}"
do
echo ""
echo "Logs of pod $p"
kubectl -n $NAMESPACE logs
done

exit -1
fi

Expand Down
10 changes: 10 additions & 0 deletions integration-test/scripts/rollingupdate-kubernetes-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ then
echo "Pods did not get ready"
kubectl -n $NAMESPACE events $APP_NAME
kubectl -n $NAMESPACE describe deployment $APP_NAME

pods=$(kubectl get pods -o jsonpath="{.items..metadata.name}" -n $NAMESPACE)
IFS=' ' read -ra pods_array <<< "$pods"
for p in "${pods_array[@]}"
do
echo ""
echo "Logs of pod $p"
kubectl -n $NAMESPACE logs $p
done

exit -1
fi

Expand Down

0 comments on commit 401d7be

Please sign in to comment.