apache / dubbo-admin

The ops and reference implementation for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
3.99k stars 2.17k forks source link

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

Closed ranLee1 closed 5 months ago

ranLee1 commented 6 months ago

Environment

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 commented 6 months ago

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

ranLee1 commented 6 months ago

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

@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