Skip to content

Commit 8cf0c58

Browse files
log the broker's logs
Signed-off-by: Daniel Kiptoon <[email protected]>
1 parent 78e44ef commit 8cf0c58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/e2etests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ jobs:
157157
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" \
158158
--header "meshery-token: ${{ secrets.PROVIDER_TOKEN }}" \
159159
--header "Cookie: meshery-provider=Meshery; token=${{ secrets.PROVIDER_TOKEN }}" | jq '.resources[].metadata.labels[] | select(.key == "purpose" and .value == "meshsync-test")')
160+
broker=$(kubectl get pods -n meshery | grep meshsync | tr -s ' ' | cut -d " " -f 1)
161+
kubectl logs $broker -n $NAMESPACE
160162
# Check if the variable is empty (no match found)
161163
if [ -n "$result" ]; then
162164
echo "Match found: $result"

0 commit comments

Comments
 (0)