Skip to content

Commit 95a955f

Browse files
committed
feat(minikube): update minikube build and deploy process for module-controller
1 parent cb471ed commit 95a955f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ minikube-delete: ## Delete module-controller deployment from minikube
3737
kubectl delete deployments.apps/module-controller || true
3838
kubectl wait --for=delete pod -l app=module-controller --timeout=90s
3939

40-
.PHONY: minikube-debug-build
41-
minikube-debug-build: fmt vet minikube-delete ## Build and deploy debug version using minikube
40+
.PHONY: minikube-build
41+
minikube-build: fmt vet minikube-delete ## Build debug version using minikube
4242
minikube image rm serverless-registry.cn-shanghai.cr.aliyuncs.com/opensource/test/module-controller-v2:latest
4343
minikube image build -f debug.Dockerfile -t serverless-registry.cn-shanghai.cr.aliyuncs.com/opensource/test/module-controller-v2:latest .
44+
45+
.PHONY: minikube-deploy
46+
minikube-deploy: ## Deploy module-controller to minikube
4447
kubectl apply -f example/quick-start/module-controller-test.yaml
4548
kubectl wait --for=condition=available --timeout=90s deployments/module-controller
4649

@@ -52,6 +55,9 @@ minikube-debug:
5255
minikube-port-forward:
5356
kubectl port-forward deployments/module-controller 2345:2345
5457

58+
.PHONY: minikube-restart
59+
minikube-restart: minikube-build minikube-deploy minikube-debug
60+
5561
##@ Deployment
5662

5763
ifndef ignore-not-found

0 commit comments

Comments
 (0)