Files
adguardhome-sync/testdata/e2e/bin/wait-for-sync.sh
T
Marc Brugger 82a61aef09 support api tls mode (#329)
Add support api tls mode
2024-04-06 11:46:12 +02:00

15 lines
370 B
Bash
Executable File

#!/bin/bash
kubectl wait --for=jsonpath='{.status.phase}'=Running pod/adguardhome-sync --timeout=1m
kubectl port-forward pod/adguardhome-sync 9090:9090 &
for i in {1..6}; do
sleep 10
RUNNING=$(curl ${1}://localhost:9090/api/v1/status -s -k | jq -r .syncRunning)
echo "SyncRunning = ${RUNNING}"
if [[ "${RUNNING}" == "false" ]]; then
exit 0
fi
done