Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit 7c6905c

Browse files
committed
Add aks-deploy for mockAPI
1 parent 9399230 commit 7c6905c

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,19 @@ run-mock-api:
229229
test-mock-api: lint
230230
go test ./mockapi/...
231231

232-
kind-deploy-mock-api: create-kindcluster install-prometheus
232+
docker-build-mock-api:
233233
docker build -t ${MOCKAPI_IMG} -f mockapi/Dockerfile .
234-
@echo "Loading mockAPI image into kind"
235-
kind load docker-image ${MOCKAPI_IMG} --name ${KIND_CLUSTER_NAME} -v 1
234+
235+
docker-push-mock-api: docker-build
236+
docker push ${IMG}
237+
238+
apply-manifests-mock-api:
236239
cat ./mockapi/manifests/deployment.yaml | sed "s|mockapi:latest|${MOCKAPI_IMG}|" | kubectl apply -f -
237240
kubectl apply -f ./mockapi/manifests/service.yaml
241+
242+
kind-load-image-mock-api: create-kindcluster docker-build-mock-api install-prometheus
243+
kind load docker-image ${MOCKAPI_IMG} --name ${KIND_CLUSTER_NAME} -v 1
244+
245+
kind-deploy-mock-api: kind-load-image-mock-api apply-manifests-mock-api
246+
247+
aks-deploy-mock-api: docker-push-mock-api install-prometheus apply-manifests-mock-api

docs/mockapi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Ensure your KUBECONFIG is set to point to the cluster you want to deploy to.
9090

9191
Deploy to AKS with
9292
```bash
93-
IMG=your-container-registry.azurecr.io/databricks-mock-api:vsomething make aks-deploy
93+
IMG=your-container-registry.azurecr.io/databricks-mock-api:vsomething make aks-deploy-mock-api
9494
```
9595

9696
To test, run `kubectl port-forward svc/databricks-mock-api 8085:8080` and make a request to http://localhost:8085 to verify that the API is running

0 commit comments

Comments
 (0)