You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ps-19 (via GitHub)" <gi...@apache.org> on 2023/04/13 09:59:31 UTC

[GitHub] [apisix-ingress-controller] ps-19 commented on a diff in pull request #1787: Added a new make dev-env entry in Makefile which will be exposed on 8000:5000 Port

ps-19 commented on code in PR #1787:
URL: https://github.com/apache/apisix-ingress-controller/pull/1787#discussion_r1165302165


##########
Makefile:
##########
@@ -328,3 +330,44 @@ install-gateway-api-local:
 .PHONY: uninstall-gateway-api
 uninstall-gateway-api:
 	kubectl delete -f $(GATEWAY_API_CRDS_LOCAL_PATH)
+
+### dev-env:			  Launch development environment
+.PHONY: dev-env
+dev-env: dev-kind-up dev-pack-image
+	helm repo add apisix https://charts.apiseven.com
+	helm repo update
+	helm install apisix apisix/apisix \
+		--set gateway.type=NodePort \
+		--set ingress-controller.enabled=true \
+		--namespace ingress-apisix \
+		--create-namespace
+	kubectl set image deployment/apisix-ingress-controller ingress-controller=$(DEV_REGISTRY)/apache/apisix-ingress-controller:dev --namespace ingress-apisix
+
+### dev-env-reset:        Reset development environment
+.PHONY: dev-env-reset
+dev-env-reset: kind-reset dev-clean-image
+
+### dev-kind-up:              Create a kind cluster with registry for dev
+.PHONY: dev-kind-up
+dev-kind-up:
+	./utils/kind-with-registry.sh "8000"

Review Comment:
   ![img_v2_834dab00-ca6d-40dd-8f39-a122b7172e1g](https://user-images.githubusercontent.com/63330165/231724894-3e5b5a77-62a6-4f09-a5c3-942c2f9d69a2.jpg)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org