Skip to content

Commit

Permalink
ensure meshsync pod is ready before deploying test pod
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kiptoon <[email protected]>
  • Loading branch information
KiptoonKipkurui committed Feb 25, 2024
1 parent 62e88e5 commit 53bd173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2etests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ jobs:
kubectl scale --replicas=1 deployment ${DEPLOYMENT_NAME} -n meshery
kubectl rollout status deployment ${DEPLOYMENT_NAME} -n $NAMESPACE
kubectl get pods -A
kubectl wait --for=condition=Ready pod --all --all-namespaces --timeout=300s
# Deploy pod
kubectl run nginx-pod --image=nginx --labels=app=web,tier=frontend,purpose=meshsync-test
kubectl wait --for=condition=Ready pod --all --all-namespaces --timeout=300s
Expand All @@ -157,8 +158,7 @@ jobs:
echo "this is $svcip"
SECONDS=0
end=$((SECONDS+300))
while [ $SECONDS -lt $end ]; do
echo $podname
while [ $SECONDS -lt $end ]; do
echo $(kubectl logs pod/$podname -n meshery)
result=$(curl -s --location "${svcip}/api/system/meshsync/resources?kind=Pod&spec=true&annotations=true&labels=true&clusterIds=%5B\"${CLUSTER_ID}\"%5D&page=0&pagesize=25&search=&order=&sort=desc" \
--header "meshery-token: ${{ secrets.PROVIDER_TOKEN }}" \
Expand Down

0 comments on commit 53bd173

Please sign in to comment.