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

Wait kubernetes deployment to be available in "make deploy"

So if the new container don't start correctly within 3 minutes, the command
will exit with status 1 and fail the build.
parent 8c5fcdcf6a15
......@@ -23,5 +23,7 @@ dev: build
deploy: push
sed "$(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
.PHONY: all build push run dev deploy
Supports Markdown
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