-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmitry Kondratyev
committed
Aug 9, 2023
1 parent
4c3f611
commit fa890c0
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ jobs: | |
with: | ||
version: v3.12.1 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
check-latest: true | ||
# - uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.9' | ||
# check-latest: true | ||
|
||
# - name: Set up chart-testing | ||
# uses: helm/[email protected] | ||
|
@@ -36,7 +36,7 @@ jobs: | |
run: | | ||
POD_NAME=$(kubectl get pod -l app=jupyterhub -l component=hub -o jsonpath='{.items[*].metadata.name}') | ||
while true; do | ||
POD_STATUS=$(kubectl get pod $POD_NAME -o jsonpath='{.items[*].status.phase}') | ||
POD_STATUS=$(kubectl get pod $POD_NAME -o jsonpath='{.status.phase}') | ||
if [[ "$POD_STATUS" == "Failed" ]]; then | ||
echo "Pod $POD_NAME is in a Failed state." | ||
exit 1 | ||
|
@@ -45,6 +45,8 @@ jobs: | |
break | ||
else | ||
echo "Pod $POD_NAME is in $POD_STATUS state. Waiting..." | ||
kubectl describe pod $POD_NAME | ||
echo "--------" | ||
kubectl logs $POD_NAME | tail | ||
echo "--------" | ||
sleep 10 # Adjust the sleep interval as needed | ||
|