[CI] Show status and logs for metadata job in CI logs (#207)

This commit is contained in:
Lari Hotari 2022-01-20 16:03:28 +02:00 committed by GitHub
parent 63cbdfe687
commit 90933d508d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,8 +81,8 @@ function ci::install_cert_manager() {
function ci::print_pod_logs() {
echo "Logs for all pulsar containers:"
for pod in $(${KUBECTL} get pods -n ${NAMESPACE} -l app=pulsar -o=name); do
${KUBECTL} logs -n ${NAMESPACE} "$pod" --all-containers=true --ignore-errors=true --prefix=true --tail=100 || true
for k8sobject in $(${KUBECTL} get pods,jobs -n ${NAMESPACE} -l app=pulsar -o=name); do
${KUBECTL} logs -n ${NAMESPACE} "$k8sobject" --all-containers=true --ignore-errors=true --prefix=true --tail=100 || true
done;
}
@ -108,7 +108,7 @@ function ci::install_pulsar_chart() {
((counter++))
echo ${WC};
sleep 15
${KUBECTL} get pods -n ${NAMESPACE}
${KUBECTL} get pods,jobs -n ${NAMESPACE}
${KUBECTL} get events --sort-by=.lastTimestamp -A | tail -n 30 || true
if [[ $((counter % 20)) -eq 0 ]]; then
ci::print_pod_logs
@ -133,7 +133,7 @@ function ci::install_pulsar_chart() {
((counter++))
echo ${WC};
sleep 15
${KUBECTL} get pods -n ${NAMESPACE}
${KUBECTL} get pods,jobs -n ${NAMESPACE}
${KUBECTL} get events --sort-by=.lastTimestamp -A | tail -n 30 || true
if [[ $((counter % 8)) -eq 0 ]]; then
ci::print_pod_logs