Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(minikube): forward REUSE_DB from minikube-setup to full-setup

Jose Ramirez7df13c1774f2
diff --git a/Makefile b/Makefile
index 45bc8cd11..abb6f11c3 100644
--- a/Makefile
+++ b/Makefile
@@ -138,8 +138,8 @@ minikube-stop: ## Stop minikube cluster
minikube stop -p $(MINIKUBE_PROFILE)
.PHONY: minikube-setup
-minikube-setup: ## Clean install from scratch. SKIP_UIS=true omits Control/Profile UI. Needs ADMIN_PASSWORD in .env.
- @MINIKUBE_SKIP_UIS="$(SKIP_UIS)" MINIKUBE_SEED_PROFILE="$(SEED_PROFILE)" \
+minikube-setup: ## Clean install from scratch (rebuilds the DB; REUSE_DB=true keeps it). SKIP_UIS=true omits Control/Profile UI. Needs ADMIN_PASSWORD in .env.
+ @MINIKUBE_SKIP_UIS="$(SKIP_UIS)" MINIKUBE_SEED_PROFILE="$(SEED_PROFILE)" REUSE_DB="$(REUSE_DB)" \
scripts/minikube/full-setup.sh $(ARGS)
.PHONY: minikube-setup-e2e
diff --git a/scripts/tests/test-minikube-full-setup.sh b/scripts/tests/test-minikube-full-setup.sh
index cf4e9a83c..9798aae11 100755
--- a/scripts/tests/test-minikube-full-setup.sh
+++ b/scripts/tests/test-minikube-full-setup.sh
@@ -279,6 +279,14 @@ assert_reuse_db_normalizer_precedes_flag_loop() {
fi
}
+assert_makefile_passes_reuse_db() {
+ if grep -Fq 'REUSE_DB="$(REUSE_DB)"' Makefile; then
+ pass "minikube-setup Make target forwards REUSE_DB to full-setup.sh"
+ else
+ fail "minikube-setup Make target does not forward REUSE_DB to full-setup.sh"
+ fi
+}
+
assert_broken_profile_is_recreated
assert_healthy_profile_skips_recreate
assert_branch_profile_deploy_dir_is_used
@@ -286,6 +294,7 @@ assert_member_registration_hmac_is_patched
assert_branch_scoped_minikube_context_is_supported
assert_gfs_provisioning_follows_migrations_and_core_readiness
assert_full_setup_defaults_to_db_rebuild
+assert_makefile_passes_reuse_db
assert_reuse_db_normalizer_precedes_flag_loop
exit $FAIL