mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 12:47:28 +08:00
support nacos namespace (#2045)
This commit is contained in:
@@ -112,6 +112,10 @@ func (c *NacosConfig) ParseConfig(config map[string]any) error {
|
|||||||
return errors.New("missing serviceMatcher")
|
return errors.New("missing serviceMatcher")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if namespace, ok := config["namespace"].(string); ok {
|
||||||
|
c.Namespace = &namespace
|
||||||
|
}
|
||||||
|
|
||||||
matchers := map[string]string{}
|
matchers := map[string]string{}
|
||||||
for key, value := range serviceMatcher {
|
for key, value := range serviceMatcher {
|
||||||
matchers[key] = value.(string)
|
matchers[key] = value.(string)
|
||||||
|
|||||||
Reference in New Issue
Block a user