Skip to content

Commit 862063c

Browse files
log meshery for debugging purposes
Signed-off-by: Daniel Kiptoon <[email protected]>
1 parent 1fbb426 commit 862063c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/e2etests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ jobs:
149149
mesheryctl system logs meshsync
150150
CLUSTER_ID=$(kubectl get ns kube-system -o jsonpath='{.metadata.uid}')
151151
echo $CLUSTER_ID
152-
podname=$(kubectl get pods -n meshery | grep meshery | tr -s ' ' | cut -d " " -f 1)
153152
kubectl logs pod/$podname -n meshery
154153
svcip="http://$(kubectl get svc -n meshery | grep "meshery " | tr -s ' ' | cut -d " " -f 3):9081"
155154
echo "this is $svcip"
156155
SECONDS=0
157156
end=$((SECONDS+300))
158-
while [ $SECONDS -lt $end ]; do
159-
echo $(kubectl logs pod/$podname -n meshery)
157+
while [ $SECONDS -lt $end ]; do
158+
mesheryctl system logs meshery
159+
160160
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" \
161161
--header "meshery-token: ${{ secrets.PROVIDER_TOKEN }}" \
162162
--header "Cookie: meshery-provider=Meshery; token=${{ secrets.PROVIDER_TOKEN }}" | jq '.resources[].metadata.labels[] | select(.key == "purpose" and .value == "meshsync-test")')

0 commit comments

Comments
 (0)