File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ SHELL_SCRIPTS = $(wildcard rootfs/bin/*) $(shell find "rootfs" -name '*.sh') $(w
1111# Get the component informtation to a tmp location and get replica count
1212KUBE := $(shell which kubectl)
1313ifdef KUBE
14- $(shell kubectl get rc deis-$(COMPONENT) --namespace deis -o yaml > /tmp/deis-$(COMPONENT))
15- DESIRED_REPLICAS =$(shell kubectl get -o template rc/deis-$(COMPONENT ) --template={{.status.replicas}} --namespace deis)
14+ $(shell kubectl get deployment deis-$(COMPONENT) --namespace deis -o yaml > /tmp/deis-$(COMPONENT))
1615endif
1716
1817# Test processes used in quick unit testing
@@ -32,8 +31,6 @@ docker-build: check-docker
3231
3332deploy : docker-build docker-push
3433 sed ' s#\(image:\) .*#\1 $(IMAGE)#' /tmp/deis-$(COMPONENT ) | kubectl apply --validate=true -f -
35- kubectl scale rc deis-$(COMPONENT ) --replicas 0 --namespace deis
36- kubectl scale rc deis-$(COMPONENT ) --replicas $(DESIRED_REPLICAS ) --namespace deis
3734
3835clean : check-docker
3936 docker rmi $(IMAGE )
You can’t perform that action at this time.
0 commit comments