# HG changeset patch
# User Philippe Pepiot <philippe.pepiot@logilab.fr>
# Date 1568728684 -7200
#      Tue Sep 17 15:58:04 2019 +0200
# Node ID c1958105395b357125e6f226fa29a0df3c67d363
# Parent  8affb087cb5d371003e78d5bf09ccfccc5f9911e
Use kubectl rollout status instead of kubectl wait

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@
 deploy: push
 	sed "s@hub.extranet.logilab.fr/logilab/fresh@$(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/fresh deployment/fresh-scheduler
+	kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/fresh
+	kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/fresh-scheduler
 
 .PHONY: all build push run dev deploy