Adding docker-kind-load target for kind-voltha development

Change-Id: I91a522f84b48d91f1c8b938c87a518bd61b8e32d
diff --git a/Makefile b/Makefile
index 7b2bff0..7d9dc5c 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@
 DOCKER_REGISTRY 		?= ""
 DOCKER_RUN_ARGS			?= ""
 DOCKER_PORTS			?= -p 50070:50070 -p 50060:50060 -p 50071:50071 -p 50072:50072 -p 50073:50073 -p 50074:50074
+TYPE                            ?= minimal
 
 ## protobuf related
 VOLTHA_PROTOS			?= $(shell GO111MODULE=on go list -f '{{ .Dir }}' -m github.com/opencord/voltha-protos/v2)
@@ -79,6 +80,10 @@
 docker-push: # @HELP Push the docker container to a registry
 	docker push ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim:${DOCKER_TAG}
 
+docker-kind-load:
+	@if [ "`kind get clusters | grep voltha-$(TYPE)`" = '' ]; then echo "no voltha-$(TYPE) cluster found" && exit 1; fi
+	kind load docker-image ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim:${DOCKER_TAG} --name=voltha-$(TYPE) --nodes $(shell kubectl get nodes --template='{{range .items}}{{.metadata.name}},{{end}}' | sed 's/,$$//')
+
 docker-run: # @HELP Runs the container locally (available options: DOCKER_RUN_ARGS="-pon 2 -onu 2" make docker-run)
 	docker run -d ${DOCKER_PORTS} --privileged --rm --name bbsim ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim:${DOCKER_TAG} /app/bbsim ${DOCKER_RUN_ARGS}
 
@@ -210,4 +215,4 @@
 	-I${GOOGLEAPI}/ \
 	-I${VOLTHA_PROTOS}/protos/ \
 	--swagger_out=logtostderr=true,allow_delete_body=true:docs/swagger/ \
-	$<
\ No newline at end of file
+	$<