Skip to content

Commit

Permalink
fix pod name
Browse files Browse the repository at this point in the history
Signed-off-by: irisdingbj <[email protected]>
  • Loading branch information
irisdingbj committed Jun 7, 2024
1 parent 1482096 commit d8bb6d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/scripts/e2e/gmc_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function install_gmc() {
kubectl apply -f $(pwd)/config/manager/gmc-manager.yaml

# Wait until the gmc controller pod is ready
GMC_CONTROLLER_POD=$(kubectl get pods --namespace=$SYSTEM_NAMESPACE | awk '{print $1}')
GMC_CONTROLLER_POD=$(kubectl get pods --namespace=$SYSTEM_NAMESPACE | awk 'NR>1 {print $1; exit}')
wait_until_pod_ready "gmc-controller" $GMC_CONTROLLER_POD $SYSTEM_NAMESPACE
}

Expand Down Expand Up @@ -56,7 +56,7 @@ function validate_chatqna() {

# Wait until the router service is ready
echo "Waiting for the chatqa router service to be ready..."
ROUTER_POD=$(kubectl get pods --namespace=$APP_NAMESPACE -l app=router-service | awk '{print $1}')
ROUTER_POD=$(kubectl get pods --namespace=$APP_NAMESPACE -l app=router-service | awk 'NR>1 {print $1; exit}')
wait_until_pod_ready "chatqna router" $ROUTER_POD $APP_NAMESPACE

# Wait until the tgi pod is ready
Expand All @@ -69,7 +69,8 @@ function validate_chatqna() {
kubectl create deployment client-test -n $APP_NAMESPACE --image=python:3.8.13 -- sleep infinity

# wait for client pod ready
wait_until_pod_ready "client-test" $APP_NAMESPACE "client-test"
CLIENT_POD=$(kubectl get pods --namespace=$APP_NAMESPACE -l app=client-test | awk 'NR>1 {print $1; exit}')
wait_until_pod_ready "client-test" $CLIENT_POD $APP_NAMESPACE
# giving time to populating data
sleep 120
kubectl get pods -n $APP_NAMESPACE
Expand Down

0 comments on commit d8bb6d1

Please sign in to comment.