Skip to content

Commit

Permalink
add-minikube-kvm (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgrath207 authored Aug 2, 2024
1 parent 29d17a1 commit 500d6fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ jobs:
- uses: azure/setup-helm@v3
- name: Run e2e
run: |
make minikube_new_docker
make deploy_e2e
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ helm-docs:
test-helm-render:
helm template ./chart -f ./chart/test-values.yaml 1> /dev/null

minikube_new:
minikube_new_virtualbox:
export PROMETHEUS_OPERATOR_VERSION=$(PROMETHEUS_OPERATOR_VERSION)
./scripts/create-minikube.sh
DRIVER='virtualbox' ./scripts/create-minikube.sh

minikube_new_docker:
export PROMETHEUS_OPERATOR_VERSION=$(PROMETHEUS_OPERATOR_VERSION)
DRIVER='docker' ./scripts/create-minikube.sh

minikube_scale_up:
minikube node add
Expand All @@ -61,7 +65,7 @@ deploy_observability:
deploy_test: init
ENV='test' ./scripts/deploy.sh

deploy_e2e: init test-helm-render ginkgo crane minikube_new
deploy_e2e: init test-helm-render ginkgo crane
ENV='e2e' ./scripts/deploy.sh

deploy_e2e_dirty: init test-helm-render
Expand Down
4 changes: 3 additions & 1 deletion scripts/create-minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ minikube start \
--kubernetes-version="${K8S_VERSION}" \
--insecure-registry "10.0.0.0/24" \
--cpus=2 \
--memory=3900MB
--memory=3900MB \
--driver="${DRIVER}"

minikube addons enable registry

# Deploy Service Monitor and Prometheus Rule CRDs
Expand Down

0 comments on commit 500d6fd

Please sign in to comment.