We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fa2070 commit f371bb2Copy full SHA for f371bb2
plugin/servicerouter/rulebase/base.go
@@ -359,6 +359,10 @@ func (g *RuleBasedInstancesFilter) matchDstMetadata(routeInfo *servicerouter.Rou
359
// 首先如果元数据的value无法获取,直接匹配失败
360
return nil, false, "", nil
361
}
362
+ // 全匹配类型直接返回全量实例
363
+ if ruleMetaValueStr == matchAll && ruleMetaValue.ValueType == apimodel.MatchString_TEXT {
364
+ return cls, true, "", nil
365
+ }
366
metaValues := svcCache.GetInstanceMetaValues(cls.Location, ruleMetaKey)
367
if len(metaValues) == 0 {
368
// 不匹配
0 commit comments