Skip to content

Commit

Permalink
Sleep on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobebway committed Aug 29, 2024
1 parent f3afca1 commit 3e24108
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/e2e-backend-switching-reuseable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ jobs:
run: |
kubectl get apigateways.operator.kyma-project.io -n kyma-system -o yaml
- name: On error, sleep for 2 hours
if: failure()
run: |
sleep 7200
- name: Cleanup modules
if: ${{ always() }}
run: |
Expand Down
12 changes: 6 additions & 6 deletions hack/ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,27 @@ apply-peerauthentication-crd:

.PHONY: wait-nats-cr-ready
wait-nats-cr-ready:
kubectl wait nats.operator.kyma-project.io -n kyma-system eventing-nats --timeout=300s --for=jsonpath='{.status.state}'=Ready
kubectl wait nats.operator.kyma-project.io -n kyma-system eventing-nats --timeout=600s --for=jsonpath='{.status.state}'=Ready

.PHONY: wait-nats-cr-warning
wait-nats-cr-warning:
kubectl wait nats.operator.kyma-project.io -n kyma-system eventing-nats --timeout=300s --for=jsonpath='{.status.state}'=Warning
kubectl wait nats.operator.kyma-project.io -n kyma-system eventing-nats --timeout=600s --for=jsonpath='{.status.state}'=Warning

.PHONY: wait-eventing-cr-ready
wait-eventing-cr-ready:
kubectl wait eventing.operator.kyma-project.io -n kyma-system eventing --timeout=300s --for=jsonpath='{.status.state}'=Ready
kubectl wait eventing.operator.kyma-project.io -n kyma-system eventing --timeout=600s --for=jsonpath='{.status.state}'=Ready

.PHONY: wait-eventing-cr-ready-with-backend
wait-eventing-cr-ready-with-backend:
kubectl wait eventing.operator.kyma-project.io -n kyma-system eventing --timeout=300s --for=jsonpath='{.status.state}'=Ready --for=jsonpath='{.status.activeBackend}'=${ACTIVE_BACKEND}
kubectl wait eventing.operator.kyma-project.io -n kyma-system eventing --timeout=600s --for=jsonpath='{.status.state}'=Ready --for=jsonpath='{.status.activeBackend}'=${ACTIVE_BACKEND}

.PHONY: wait-istio-cr-ready
wait-istio-cr-ready:
kubectl wait istios.operator.kyma-project.io -n kyma-system default --timeout=300s --for=jsonpath='{.status.state}'=Ready
kubectl wait istios.operator.kyma-project.io -n kyma-system default --timeout=600s --for=jsonpath='{.status.state}'=Ready

.PHONY: wait-api-gateway-cr-ready
wait-api-gateway-cr-ready:
kubectl wait apigateways.operator.kyma-project.io -n kyma-system default --timeout=300s --for=jsonpath='{.status.state}'=Ready
kubectl wait apigateways.operator.kyma-project.io -n kyma-system default --timeout=600s --for=jsonpath='{.status.state}'=Ready

.PHONY: provision-gardener-cluster
provision-gardener-cluster:
Expand Down

0 comments on commit 3e24108

Please sign in to comment.