Commit c8d38a7c authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Use "kubectl rollout status" instead of "kubectl wait"

wait exits when deployment is finished. rollout status wait deployment is ready.
parent a7659f61739e
......@@ -24,6 +24,7 @@ dev: build
deploy: push
sed "s@hub.extranet.logilab.fr/logilab/intranet@$(IMAGE)@" deploy/deployment.yaml | kubectl -n $(NAMESPACE) apply -f -
@echo "wait at max 3 minutes for deployment to be UP"
kubectl -n $(NAMESPACE) wait --for=condition=available --timeout=180s deployment/intranet deployment/intranet-scheduler
kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/intranet
kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/intranet-scheduler
.PHONY: all build push run dev deploy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment