Skip to content

Commit 91b2543

Browse files
committed
ref(makefile): update make deploy to account for Controller using Deployment instead of RC
1 parent efafb7a commit 91b2543

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
1212
KUBE := $(shell which kubectl)
1313
ifdef 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))
1615
endif
1716

1817
# Test processes used in quick unit testing
@@ -32,8 +31,6 @@ docker-build: check-docker
3231

3332
deploy: 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

3835
clean: check-docker
3936
docker rmi $(IMAGE)

0 commit comments

Comments
 (0)