From c768973e470e2323c92f6f3456566a684dc73484 Mon Sep 17 00:00:00 2001 From: EricaLiu <30773688+Erica177@users.noreply.github.com> Date: Thu, 15 May 2025 16:28:37 +0800 Subject: [PATCH] Fix : add fail strategy for wasmplugin generated by mcp server (#2237) --- registry/memory/cache.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/memory/cache.go b/registry/memory/cache.go index 75faf897a..9da200c6e 100644 --- a/registry/memory/cache.go +++ b/registry/memory/cache.go @@ -101,9 +101,10 @@ func (s *store) GetAllConfigs(kind config.GroupVersionKind) map[string]*config.C wasmPlugin := &extensions.WasmPlugin{ ImagePullPolicy: extensions.PullPolicy_Always, Phase: extensions.PluginPhase_UNSPECIFIED_PHASE, - Priority: &wrapperspb.Int32Value{Value: 30}, + Priority: &wrapperspb.Int32Value{Value: 999}, PluginConfig: pbs, Url: higressconfig.McpServerWasmImageUrl, + FailStrategy: extensions.FailStrategy_FAIL_OPEN, } return map[string]*config.Config{"wasm": &config.Config{