Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo-admin 标签规则无法按官方示例文档进行设置🆘 #1268

Closed
2 tasks done
ranLee1 opened this issue Mar 11, 2024 · 2 comments
Closed
2 tasks done

dubbo-admin 标签规则无法按官方示例文档进行设置🆘 #1268

ranLee1 opened this issue Mar 11, 2024 · 2 comments

Comments

@ranLee1
Copy link

ranLee1 commented Mar 11, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the REAMDE of this repository and believe that this is not a duplicate.

Environment

  • Dubbo Admin version: 0.5.0
  • Registry center detail (type and version): Nacos:v2.2.1
  • Operating System version: centos:7.9
  • Java version: 17

Steps to reproduce this issue

使用docker 搭建的dubbo-admin
1、在dubbo-admin中依次点击服务治理-标签路由-创建
2、添加官方标签路由示例

configVersion: v3.0
force: true
enabled: true
key: shop-detail
tags:
  - name: gray
    match:
      - key: env
        value:
          exact: gray

3、点击保存后提示成功
4、在次编辑该标签路由显示结果:

enabled: true
force: true
runtime: false
tags:
  - name: gray
    addresses: null

Expected Result

image

Actual Result

image

@liujia13142324
Copy link

直接去改配置中心吧,这个管理后台约束做的太严格了

@ranLee1
Copy link
Author

ranLee1 commented Mar 26, 2024

直接去改配置中心吧,这个管理后台约束做的太严格了

@liujia13142324感谢您的回复,直接在配置中心修改是一个不错的方式,同时意味着后续编辑仅支持在配置中心操作,因为dubbo-admin获取配置时做了严格的格式限制,进而导致异常,如下图所示:
image
nacos注册中心标签路由配置:

enabled: true
force: true
key: platform-service
priority: 0
runtime: false
tags:
  - name: gray
    match:
      - key: env
        value:
          exact: gray

@ranLee1 ranLee1 closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants