mirror of https://github.com/milvus-io/milvus.git
Show milvus config after install milvus (#20712)
Signed-off-by: Jenny Li <jing.li@zilliz.com> Signed-off-by: Jenny Li <jing.li@zilliz.com>pull/20736/head
parent
dffcd974ff
commit
f8d071a5be
|
@ -44,6 +44,8 @@ pipeline {
|
|||
HUB = "harbor.milvus.io/milvus"
|
||||
JENKINS_BUILD_ID = "${env.BUILD_ID}"
|
||||
CI_MODE="nightly"
|
||||
|
||||
SHOW_MILVUS_CONFIGMAP= true
|
||||
}
|
||||
|
||||
stages {
|
||||
|
|
|
@ -34,6 +34,7 @@ pipeline {
|
|||
HUB = 'harbor.milvus.io/milvus'
|
||||
JENKINS_BUILD_ID = "${env.BUILD_ID}"
|
||||
CI_MODE="pr"
|
||||
SHOW_MILVUS_CONFIGMAP= true
|
||||
}
|
||||
|
||||
stages {
|
||||
|
|
|
@ -100,8 +100,8 @@ restart_pods=$(kubectl get pods -n ${MILVUS_HELM_NAMESPACE} | grep "${MILVUS_HEL
|
|||
|
||||
for restart_pod in ${restart_pods}
|
||||
do
|
||||
reason=$(kubectl get pod ${restart_pod} -n milvus-ci -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 )
|
||||
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_HELM_NAMESPACE} -o json | jq .status.containerStatuses[0].restartCount )
|
||||
echo "${restart_pod} restarts ${restart_count}, last terminateed reason is ${reason}"
|
||||
done
|
||||
|
||||
|
@ -115,4 +115,9 @@ if [[ ${exitcode} -ne 0 ]];then
|
|||
fi
|
||||
|
||||
kubectl get pvc -n ${MILVUS_HELM_NAMESPACE} | grep "${MILVUS_HELM_RELEASE_NAME}-" | awk '{$3=null;print $0}'
|
||||
if [[ -n ${SHOW_MILVUS_CONFIGMAP} ]]; then
|
||||
echo "-----------------milvus config --------------------"
|
||||
kubectl get configmap ${MILVUS_HELM_RELEASE_NAME}-milvus -n ${MILVUS_HELM_NAMESPACE} -o jsonpath="{$.data}"
|
||||
|
||||
fi
|
||||
exit ${exitcode}
|
||||
|
|
Loading…
Reference in New Issue