From c139660f58e96b2951e318bac7bfe22d0c08488f Mon Sep 17 00:00:00 2001 From: martin <> Date: Wed, 14 Feb 2024 12:42:21 +0100 Subject: [PATCH] revert change with always wait and only wait in pulsar manager test for job to complete --- .ci/helm.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.ci/helm.sh b/.ci/helm.sh index 95172a77..73775255 100644 --- a/.ci/helm.sh +++ b/.ci/helm.sh @@ -133,10 +133,11 @@ function ci::install_pulsar_chart() { --timeout=90s # configure metallb ${KUBECTL} apply -f ${BINDIR}/metallb/metallb-config.yaml + install_args="" + else + install_args="--wait --wait-for-jobs --timeout 300s --debug" fi - install_args="--wait --wait-for-jobs --timeout 300s --debug" - CHART_ARGS="" if [[ "${PULSAR_CHART_VERSION}" == "local" ]]; then set -x @@ -352,6 +353,10 @@ function ci::test_pulsar_function() { function ci::test_pulsar_manager() { echo "Testing pulsar manager" + + until ${KUBECTL} get jobs -n ${NAMESPACE} ${CLUSTER}-pulsar-manager-init -o json | jq -r '.status.conditions[] | select (.type | test("Complete")).status' | grep True; do sleep 3; done + + echo "Checking Podname" podname=$(${KUBECTL} get pods -n ${NAMESPACE} -l component=pulsar-manager --no-headers -o custom-columns=":metadata.name") echo "Getting pulsar manager UI password"