From 320a9f240c88c0338c7ad6196657379f9d69461b Mon Sep 17 00:00:00 2001 From: "dongsheng.qi" Date: Tue, 17 Oct 2023 13:46:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8A=A8=E6=80=81=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E6=94=AF=E6=8C=81destination=E7=9A=84?= =?UTF-8?q?=E5=80=BC'*'=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 96774fab..b9314061 100644 --- a/plugin/servicerouter/rulebase/base.go +++ b/plugin/servicerouter/rulebase/base.go @@ -401,6 +401,9 @@ func (g *RuleBasedInstancesFilter) matchDstMetadata(routeInfo *servicerouter.Rou if !validateInMetadata(ruleMetaKey, ruleMetaValue, ruleMetaValueStr, inCluster.Metadata, nil) { return nil, false, "", nil } + if ruleMetaValueStr == matchAll && ruleMetaValue.ValueType == apimodel.MatchString_TEXT { + return cls, true, "", nil + } if composedValue, ok := metaValues[ruleMetaValueStr]; ok { if cls.RuleAddMetadata(ruleMetaKey, ruleMetaValueStr, composedValue) { metaChanged = true