From 11a26c2d96b14e392889c187333d7fd769bb641b Mon Sep 17 00:00:00 2001 From: CH3CHO Date: Thu, 9 Apr 2026 22:25:38 +0800 Subject: [PATCH] feat: Allow overriding plugin image URLs without turning off plugin server --- all-in-one/scripts/start-console.sh | 5 +++-- all-in-one/scripts/start-controller.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/all-in-one/scripts/start-console.sh b/all-in-one/scripts/start-console.sh index 58d2d3c..13c0359 100644 --- a/all-in-one/scripts/start-console.sh +++ b/all-in-one/scripts/start-console.sh @@ -30,9 +30,10 @@ if [ "$O11Y" == "on" ]; then export HIGRESS_CONSOLE_DASHBOARD_DATASOURCE_LOKI_URL="http://localhost:3100" fi -if [ "$USE_PLUGIN_SERVER" == "on" ]; then - export HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN="http://localhost:8002/plugins/\${name}/\${version}/plugin.wasm" +if [ "$USE_PLUGIN_SERVER" == "on" -a -z "$HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN" ]; then + HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN="http://localhost:8002/plugins/\${name}/\${version}/plugin.wasm" fi +export HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN HIGRESS_CONSOLE_KUBE_CONFIG="/app/kubeconfig" \ HIGRESS_CONSOLE_SERVICE_HOST="higress-console.static" \ diff --git a/all-in-one/scripts/start-controller.sh b/all-in-one/scripts/start-controller.sh index 6513d52..99c2587 100644 --- a/all-in-one/scripts/start-controller.sh +++ b/all-in-one/scripts/start-controller.sh @@ -20,9 +20,10 @@ waitForApiServer set -e # Use HTTP for loading wasm plugins from plugin-server -if [ "$USE_PLUGIN_SERVER" == "on" ]; then - export MCP_SERVER_WASM_IMAGE_URL="http://localhost:8002/plugins/mcp-server/1.0.0/plugin.wasm" +if [ "$USE_PLUGIN_SERVER" == "on" -a -z "$MCP_SERVER_WASM_IMAGE_URL" ]; then + MCP_SERVER_WASM_IMAGE_URL="http://localhost:8002/plugins/mcp-server/1.0.0/plugin.wasm" fi +export MCP_SERVER_WASM_IMAGE_URL /usr/local/bin/higress \ serve \