Rename Makefile variables for kind
.PHONY: compose-up compose-down kind-up kind-down kind-apply kind-export
-NAME=kind
-KUBECONFIG:=~/.kube/kind-config-$(NAME)
+KIND_CLUSTER_NAME=kind
+KIND_KUBECONFIG:=~/.kube/kind-config-$(KIND_CLUSTER_NAME)
compose-up:
@ cd dev/; docker-compose up --build
@@ -10,14 +10,14 @@ compose-down:
@ cd dev/; docker-compose down --rmi local
kind-up:
- kind create cluster --config k8s/dev/kind.yaml --name=$(NAME)
+ kind create cluster --config k8s/dev/kind.yaml --name=$(KIND_CLUSTER_NAME)
kind-down:
- kind delete cluster --name=$(NAME)
+ kind delete cluster --name=$(KIND_CLUSTER_NAME)
kind-apply:
- @ KUBECONFIG=$(KUBECONFIG) kubectl apply -R -f k8s/dev/nats-operator.yaml
- @ KUBECONFIG=$(KUBECONFIG) skaffold dev -p dev
+ @ KUBECONFIG=$(KIND_KUBECONFIG) kubectl apply -R -f k8s/dev/nats-operator.yaml
+ @ KUBECONFIG=$(KIND_KUBECONFIG) skaffold dev -p dev
kind-export:
- @echo export KUBECONFIG="$$(kind get kubeconfig-path --name="$(NAME)")"
+ @echo export KUBECONFIG="$$(kind get kubeconfig-path --name="$(KIND_CLUSTER_NAME)")"
