Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(minikube): plan bootstrap without a kube context
Alfredo Lopez5e1d4157c184
diff --git a/scripts/minikube/t2-common.sh b/scripts/minikube/t2-common.shindex 97747d2fa..8e58e11fe 100755--- a/scripts/minikube/t2-common.sh+++ b/scripts/minikube/t2-common.sh@@ -431,6 +431,8 @@ t2_profile_status() {t2_marker_check() {local marker_probe marker_status=0+ # A missing or stopped profile has no Kubernetes context to query yet.+ [ "$T2_BOOTSTRAP_REQUIRED" != true ] || return 0# `--ignore-not-found` makes an absent marker an explicit empty-object# result. Preserve every other kubectl failure: a timeout, RBAC denial, or# transport error must never be reclassified as bootstrap permission.diff --git a/scripts/tests/test-minikube-t2-scenarios.sh b/scripts/tests/test-minikube-t2-scenarios.shindex 5a04c78b3..37acafdf2 100755--- a/scripts/tests/test-minikube-t2-scenarios.sh+++ b/scripts/tests/test-minikube-t2-scenarios.sh@@ -231,6 +231,9 @@ expect_code PROFILE_OWNERSHIP_MISMATCH marker-ownership marker-ownership \missing_marker_state="$(env "${marker_env[@]}" bash -c 'source "$1"; T2_WORKTREE_ID=worktree-a; T2_HEAD=feature; t2_kc(){ printf "%s" "{}"; }; t2_marker_check; printf "%s" "$T2_PLAN_STATE"' bash "$COMMON")"[ "$missing_marker_state" = full-bootstrap ] || fail "empty marker selected $missing_marker_state instead of full-bootstrap"+missing_profile_marker_state="$(env "${marker_env[@]}" T2_BOOTSTRAP_REQUIRED=true bash -c 'source "$1"; T2_BOOTSTRAP_REQUIRED=true; T2_PLAN_STATE=full-bootstrap; t2_kc(){ printf "unexpected kubectl call\n" >&2; return 1; }; t2_marker_check; printf "%s" "$T2_PLAN_STATE"' bash "$COMMON")"+[ "$missing_profile_marker_state" = full-bootstrap ] || fail "missing profile queried a nonexistent Kubernetes context"+expect_code PROFILE_UNHEALTHY marker-read-timeout marker-read-timeout \env "${marker_env[@]}" bash -c 'source "$1"; T2_WORKTREE_ID=worktree-a; T2_HEAD=feature; t2_kc(){ return 124; }; t2_marker_check' bash "$COMMON"