Skip to content

Commit

Permalink
Wait for rollout to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
grischperl committed Jan 3, 2024
1 parent 0192c4d commit 43f7807
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,7 @@ jobs:
jq --arg new_image "$EPP_IMAGE" \
'.spec.template.spec.containers[0].env |= map(if .name == "PUBLISHER_IMAGE" then .value = $new_image else . end)' |
kubectl apply -f -
- name: Wait for rollout to complete
run: |
TIMEOUT=60
END=$((SECONDS+TIMEOUT))
while [ $SECONDS -lt $END ]; do
OLD_EM=$(kubectl get pods -n kyma-system -o=jsonpath='{.items[?(@.metadata.name =~ /^eventing-manager-/ && @.status.phase != "Running")].metadata.name}')
if [ -z "$OLD_EM" ]; then
echo "Rollout completed successfully."
exit 0
else
echo "Waiting for old EM pod to terminate: $OLD_EM"
sleep 10
fi
done
echo "Rollout of new EPP image to EM did not complete within the timeout period."
exit 1
kubectl rollout status deployment/eventing-manager -n kyma-system --timeout=120s
- name: Setup subscriptions for testing
run: |
Expand Down

0 comments on commit 43f7807

Please sign in to comment.