Skip to content

Commit

Permalink
Add kind and k8s input to run_in_kind target
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor committed Jan 11, 2024
1 parent 227e490 commit 997398a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -280,19 +280,21 @@ deploy-no-sa: deployment-config-no-sa
.PHONY: push-and-deploy-no-sa
push-and-deploy-no-sa: push-images deploy-no-sa

KIND_CONTEXT_NAME ?= kind

.PHONY: run-in-kind
run-in-kind:
IMAGE_REPO=porch-kind make build-images
kind load docker-image porch-kind/porch-server:${IMAGE_TAG}
kind load docker-image porch-kind/porch-controllers:${IMAGE_TAG}
kind load docker-image porch-kind/porch-function-runner:${IMAGE_TAG}
kind load docker-image porch-kind/porch-wrapper-server:${IMAGE_TAG}
kind load docker-image porch-kind/test-git-server:${IMAGE_TAG}
kind load docker-image porch-kind/porch-server:${IMAGE_TAG} -n ${KIND_CONTEXT_NAME}
kind load docker-image porch-kind/porch-controllers:${IMAGE_TAG} -n ${KIND_CONTEXT_NAME}
kind load docker-image porch-kind/porch-function-runner:${IMAGE_TAG} -n ${KIND_CONTEXT_NAME}
kind load docker-image porch-kind/porch-wrapper-server:${IMAGE_TAG} -n ${KIND_CONTEXT_NAME}
kind load docker-image porch-kind/test-git-server:${IMAGE_TAG} -n ${KIND_CONTEXT_NAME}
IMAGE_REPO=porch-kind make deployment-config
kubectl apply --wait --recursive --filename ./.build/deploy
kubectl rollout status deployment function-runner --namespace porch-system
kubectl rollout status deployment porch-controllers --namespace porch-system
kubectl rollout status deployment porch-server --namespace porch-system
KUBECONFIG=$(KUBECONFIG) kubectl apply --wait --recursive --filename ./.build/deploy
KUBECONFIG=$(KUBECONFIG) kubectl rollout status deployment function-runner --namespace porch-system
KUBECONFIG=$(KUBECONFIG) kubectl rollout status deployment porch-controllers --namespace porch-system
KUBECONFIG=$(KUBECONFIG) kubectl rollout status deployment porch-server --namespace porch-system

.PHONY: vulncheck
vulncheck: build
Expand Down

0 comments on commit 997398a

Please sign in to comment.