apolloconfig / apollo

Apollo is a reliable configuration management system suitable for microservice configuration management scenarios.
https://www.apolloconfig.com
Apache License 2.0
29.18k stars 10.21k forks source link

获取App的环境,集群信息的openapi中集群顺序被重排了 #5276

Closed uucloud closed 1 week ago

uucloud commented 2 weeks ago

描述bug

比如根据id顺序本来应该是

[
    {
        "env": "DEV",
        "clusters": [
            "default",
            "cluster1",
            "cluster2"
        ]
    }
]

openapi返回的内容变成了

[
    {
        "env": "DEV",
        "clusters": [
            "cluster1",
            "default",
            "cluster2"
        ]
    }
]

复现

通过如下步骤可以复现:

  1. 创建cluster1、cluster2 namespace后调用openapi查看

期望

顺序和前端一致