From 577344cda39d3201b57ed3186fb884b83df2fb7a Mon Sep 17 00:00:00 2001 From: Hai Huang Date: Wed, 3 Jun 2026 05:56:25 -0400 Subject: [PATCH] demo(authbridge): check python-keycloak in preflight (fail fast) make demo-echo previously failed at the late setup-keycloak step (after building images, overriding the operator, and deploying) when python-keycloak was missing. Move the check into preflight so it fails before any of that. Assisted-By: Claude (Anthropic AI) Signed-off-by: Hai Huang --- authbridge/demos/echo/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/authbridge/demos/echo/Makefile b/authbridge/demos/echo/Makefile index ac8e12664..bd1b13e88 100644 --- a/authbridge/demos/echo/Makefile +++ b/authbridge/demos/echo/Makefile @@ -94,6 +94,13 @@ preflight: ## Verify kagenti is installed + tools are available echo " Install: pip3 install --user pyyaml"; \ exit 1; \ } + @python3 -c 'import keycloak' 2>/dev/null || { \ + echo "ERROR: python-keycloak is required (used later by setup-keycloak)."; \ + echo " Install: pip install python-keycloak"; \ + echo " Checked here in preflight so demo-echo fails before the"; \ + echo " build/deploy steps rather than after them."; \ + exit 1; \ + } # ---------- Sidecar (authbridge proxy) ----------