Skip to content

Commit

Permalink
Added log process in background
Browse files Browse the repository at this point in the history
Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com>
  • Loading branch information
biswajit-9776 committed Sep 6, 2024
1 parent 363113c commit 63821aa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pss_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,15 @@ jobs:
elif [ "$NAME" = "profiles-deployment" ]; then
kubectl wait -n kubeflow --for=condition=ready pod -l 'kustomize.component=profiles' --timeout=180s
else
log_pod() {
while [ $! -eq 0 ]; do
echo "Fetching logs for pod: $POD_NAME"
kubectl logs -n "$NAMESPACE" "$POD_NAME"
sleep 5
done
}
log_pod &
kubectl wait -n "$NAMESPACE" --for=condition=ready pod -l app="$NAME" --timeout=250s
while [ $? -eq 0 ]; do
kubectl describe pod -l app="$NAME" -n "$NAMESPACE"
sleep 20
done
fi
fi
done
Expand Down

0 comments on commit 63821aa

Please sign in to comment.