diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3a1e3dd..34ffdca 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,6 +36,26 @@ jobs: - name: Run chart-testing (install) run: helm install mirrord mirrord-operator --wait --set=license.key="1234567aa890" + - name: wait for operator status + run: | + end_time=$((SECONDS+60)) + log_file="error.log" + rm -f "$log_file" + + while [ $SECONDS -lt $end_time ]; do + if target/debug/mirrord operator status 2>> "$log_file"; then + break + fi + kubectl describe pods -n mirrord + sleep 5 + done + + if [ $SECONDS -ge $end_time ]; then + echo "Timed out!, error messages:" + cat "$log_file" + exit 1 + fi + - name: Install mirrord run: curl -fsSL https://raw.githubusercontent.com/metalbear-co/mirrord/main/scripts/install.sh | bash