mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Add describe in ci logs (#18983)
Signed-off-by: Jenny Li <jing.li@zilliz.com> Signed-off-by: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
parent
816967c000
commit
1bb2fdfbe8
@ -15,7 +15,6 @@
|
|||||||
set -e
|
set -e
|
||||||
# Print commands
|
# Print commands
|
||||||
# set -x
|
# set -x
|
||||||
|
|
||||||
while (( "$#" )); do
|
while (( "$#" )); do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
@ -62,11 +61,17 @@ if [[ -n "${RELEASE_NAME:-}" ]]; then
|
|||||||
|
|
||||||
for restart_pod in ${restart_pods}
|
for restart_pod in ${restart_pods}
|
||||||
do
|
do
|
||||||
reason=$(kubectl get pod ${restart_pod} -n milvus-ci -o json | jq .status.containerStatuses[0].lastState.terminated.reason )
|
reason=$(kubectl get pod ${restart_pod} -n ${MILVUS_HELM_NAMESPACE} -o json | jq .status.containerStatuses[0].lastState.terminated.reason )
|
||||||
restart_count=$(kubectl get pod ${restart_pod} -n milvus-ci -o json | jq .status.containerStatuses[0].restartCount )
|
restart_count=$(kubectl get pod ${restart_pod} -n${MILVUS_HELM_NAMESPACE} -o json | jq .status.containerStatuses[0].restartCount )
|
||||||
echo "${restart_pod} restarts ${restart_count}, last terminateed reason is ${reason}"
|
echo "${restart_pod} restarts ${restart_count}, last terminateed reason is ${reason}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "----------------Pod Events --------------------------------------------"
|
||||||
|
for pod in $(kubectl get pods -n ${MILVUS_HELM_NAMESPACE} -o wide | grep "${MILVUS_HELM_RELEASE_NAME}-" | awk '{print $1}')
|
||||||
|
do
|
||||||
|
echo "--------------------------------${pod}-----------------------------"
|
||||||
|
kubectl describe pod ${pod} -n ${MILVUS_HELM_NAMESPACE}
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Uninstall Milvus Helm Release
|
# Uninstall Milvus Helm Release
|
||||||
|
Loading…
Reference in New Issue
Block a user