# HG changeset patch
# User Philippe Pepiot <philippe.pepiot@logilab.fr>
# Date 1558021281 -7200
#      Thu May 16 17:41:21 2019 +0200
# Node ID a6cd40f4a821249480638ccf8902a52caff35da8
# Parent  5b722d6d6759dccc47189048570d4980b4551730
Makefile: fix waiting deployment/fresh-scheduler

NAMESPACE is intranet, not fresh

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,6 @@
 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/$(NAMESPACE)-scheduler
+	kubectl -n $(NAMESPACE) wait --for=condition=available --timeout=180s deployment/fresh deployment/fresh-scheduler
 
 .PHONY: all build push run dev deploy