Skip to content

Commit 068820f

Browse files
committed
Wait for curl-test pod readiness in CI and setup scripts
Added kubectl wait commands for the curl-test pod in both the CI workflow and verify-setup.sh script to ensure the pod is ready before running connectivity tests. This improves reliability of the deployment and testing process.
1 parent a8aae15 commit 068820f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ jobs:
142142
143143
# Wait for deployment
144144
kubectl wait --for=condition=ready pod -l app=httpbin -n test --timeout=120s
145+
kubectl wait --for=condition=ready pod -l app=curl-test -n test --timeout=120s
145146
146147
# Test connectivity
147148
kubectl exec -n test deploy/curl-test -- curl -s httpbin:8000/headers

scripts/verify-setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ EOF
8484

8585
# Wait for pod
8686
kubectl wait --for=condition=ready pod -l app=httpbin -n test --timeout=60s >/dev/null 2>&1
87+
kubectl wait --for=condition=ready pod -l app=curl-test -n test --timeout=120s >/dev/null 2>&1
88+
8789

8890
# Test connectivity
8991
kubectl exec -n test deploy/curl-test -- curl -s httpbin:8000/headers

0 commit comments

Comments
 (0)