Skip to content

Commit

Permalink
test: always print initContainer logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Nov 8, 2024
1 parent 79b3401 commit 6e73990
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions test/utils/blob_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@ kubectl get pods -n${NS} -l${LABEL} \
| awk 'NR>1 {print $1}' \
| xargs -I {} kubectl logs {} --prefix -c${CONTAINER} -n${NS}

if [ -n "$ENABLE_BLOBFUSE_PROXY" ]; then
echo "print out install-blobfuse-proxy logs ..."
echo "======================================================================================"
LABEL="app=csi-$DRIVER-node"
PROXY=install-blobfuse-proxy
kubectl get pods -n${NS} -l${LABEL} \
| awk 'NR>1 {print $1}' \
| xargs -I {} kubectl logs {} --prefix -c${PROXY} -n${NS}
fi
echo "print out install-blobfuse-proxy logs ..."
echo "======================================================================================"
LABEL="app=csi-$DRIVER-node"
PROXY=install-blobfuse-proxy
kubectl get pods -n${NS} -l${LABEL} \
| awk 'NR>1 {print $1}' \
| xargs -I {} kubectl logs {} --prefix -c${PROXY} -n${NS}

echo "======================================================================================"
ip=`kubectl get svc csi-$DRIVER-controller -n kube-system | awk '{print $4}'`
Expand Down

0 comments on commit 6e73990

Please sign in to comment.