From 1f7b1e79b9c19083a97a67bdada0113e4fcddbb2 Mon Sep 17 00:00:00 2001 From: FuPengCheng1 <48904980+FuPengCheng1@users.noreply.github.com> Date: Sat, 17 Aug 2024 15:42:14 +0800 Subject: [PATCH] fix:rawMetaValue matchAll (#214) Co-authored-by: fupengcheng --- plugin/servicerouter/rulebase/base.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/servicerouter/rulebase/base.go b/plugin/servicerouter/rulebase/base.go index ea25f2ee..765b7798 100644 --- a/plugin/servicerouter/rulebase/base.go +++ b/plugin/servicerouter/rulebase/base.go @@ -162,6 +162,9 @@ func (g *RuleBasedInstancesFilter) matchSourceMetadata(ruleMeta map[string]*apim if !exist { return false, "", nil } + if rawMetaValue == matchAll { + continue + } switch ruleMetaValue.Type { case apimodel.MatchString_REGEX: var matchExp *regexp.Regexp