Skip to content

Commit

Permalink
improve verify-serverless 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pPrecel committed Jan 23, 2024
1 parent 8617997 commit c89efd0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/operator/hack/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ deprovision-gardener: kyma ## Deprovision gardener cluster

.PHONY: verify-serverless
verify-serverless: ## Wait for Serverless CR to be in Ready state.
# wait some time to make sure operator starts the reconciliation first
sleep 10

(kubectl wait --for condition=Available -n kyma-system deployment serverless-operator --timeout=60s | \
@./verify_serverless_status.sh | \
kubectl wait --for condition=Available -n kyma-system deployment serverless-ctrl-mngr --timeout=60s) \
|| \
(make print-serverless-details && false)
kubectl wait --for condition=Available -n kyma-system deployment serverless-operator --timeout=60s || \
make print-serverless-details && false

./verify_serverless_status.sh || \
make print-serverless-details && false

kubectl wait --for condition=Available -n kyma-system deployment serverless-ctrl-mngr --timeout=60s || \
make print-serverless-details && false

.PHONY: print-serverless-details
print-serverless-details: ## Print all pods, deploys and serverless CRs in the kyma-system namespace.
Expand Down

0 comments on commit c89efd0

Please sign in to comment.