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
Jenny Li 2022-11-18 20:43:09 +08:00 committed by GitHub
parent dffcd974ff
commit f8d071a5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -44,6 +44,8 @@ pipeline {
HUB = "harbor.milvus.io/milvus"
JENKINS_BUILD_ID = "${env.BUILD_ID}"
CI_MODE="nightly"
SHOW_MILVUS_CONFIGMAP= true
}
stages {

View File

@ -34,6 +34,7 @@ pipeline {
HUB = 'harbor.milvus.io/milvus'
JENKINS_BUILD_ID = "${env.BUILD_ID}"
CI_MODE="pr"
SHOW_MILVUS_CONFIGMAP= true
}
stages {

View File

@ -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}