Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(minikube): accept digest-only local image manifests
Alfredo Lopez5b36377703f0
diff --git a/scripts/minikube/t2-common.sh b/scripts/minikube/t2-common.shindex 41f8754c1..d5cb46f5e 100755--- a/scripts/minikube/t2-common.sh+++ b/scripts/minikube/t2-common.sh@@ -322,7 +322,9 @@ except (OSError, ValueError):raise SystemExit("invalid")source = payload.get("imageSource") or payload.get("source") or payload.get("mode") or ""tag = payload.get("imageTag") or payload.get("tag") or ""-if not source or not tag:+# Local builds are identified by the per-image digests in the manifest and+# intentionally have no registry tag. GHCR manifests still require a tag.+if source not in {"local", "ghcr"} or (source == "ghcr" and not tag):raise SystemExit("missing")print(source + "\t" + tag)PYdiff --git a/scripts/tests/test-minikube-t2-scenarios.sh b/scripts/tests/test-minikube-t2-scenarios.shindex 2b3783341..1ed5c5a82 100755--- a/scripts/tests/test-minikube-t2-scenarios.sh+++ b/scripts/tests/test-minikube-t2-scenarios.sh@@ -133,6 +133,17 @@ expect_code IMAGE_MANIFEST_MISMATCH stale-image stale-image \env "${repo_env[@]}" T2_IMAGE_MANIFEST="$manifest" T2_IMAGE_SOURCE=local T2_IMAGE_TAG=old \bash -c 'source "$1"; T2_IMAGE_SOURCE=local; T2_IMAGE_TAG=old; t2_image_check' bash "$COMMON"+local_manifest="$tmp/local-image-manifest.json"+printf '{"imageSource":"local","imageTag":"","images":{"clerum/control-api:test":"sha256:local"}}\n' >"$local_manifest"+env "${repo_env[@]}" T2_IMAGE_MANIFEST="$local_manifest" T2_IMAGE_SOURCE=local T2_IMAGE_TAG= \+ bash -c 'source "$1"; T2_IMAGE_SOURCE=local; T2_IMAGE_TAG=""; t2_image_check' bash "$COMMON"++ghcr_manifest="$tmp/ghcr-image-manifest.json"+printf '{"imageSource":"ghcr","imageTag":""}\n' >"$ghcr_manifest"+expect_code IMAGE_MANIFEST_MISMATCH tagless-ghcr tagless-ghcr \+ env "${repo_env[@]}" T2_IMAGE_MANIFEST="$ghcr_manifest" T2_IMAGE_SOURCE=ghcr T2_IMAGE_TAG= \+ bash -c 'source "$1"; T2_IMAGE_SOURCE=ghcr; T2_IMAGE_TAG=""; t2_image_check' bash "$COMMON"+expect_code SECRET_MISSING missing-secret missing-secret \env "${repo_env[@]}" T2_BOOTSTRAP_REQUIRED=false T2_REQUIRED_NAMESPACES=control-plane \T2_REQUIRED_SERVICES=control-plane/control-api T2_REQUIRED_SECRETS=control-plane/absent \