apolloconfig / apollo

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

if the new gray env should return the main env's latest releases #5054

Closed xxyush closed 5 months ago

xxyush commented 6 months ago

描述bug

I have a PRO env and the gray env of PRO: 1,without adding or changing any items to the gray,using open api (http://apollo.xxx/openapi/v1/envs/PRO/apps/test_app/clusters/XXX/namespaces/application/releases/latest) to get latest releases is empty(no including the items of PRO env part )2, then I deploy any oen item in gray env, then using the open api to get the latest releases, the result contains the gray part(the new add one) And the pro env part items. 复现

通过如下步骤可以复现:

  1. Choose a env
  2. build the env's gray env
  3. using open api to get the latest releases
  4. the result content is empty and no significant content

期望

so I wonder if the fist situation should also include/display the PRO env items as the gray release items

截图

如果可以,附上截图来描述你的问题

额外的细节和日志

dosubot[bot] commented 6 months ago

🤖

Hello @xxyush! I'm Dosu, a friendly bot here to help while we wait for a human maintainer. I'm designed to assist with bug resolution, answer questions, and help you navigate the contribution process. Let's work together to figure out the issue you're encountering!

根据我对Apollo系统的理解,当你创建一个灰度环境并没有添加或更改任何配置项时,通过Open API获取最新发布的结果应该是空的。这是因为灰度环境是独立的,它不会自动继承PRO环境的配置项。只有当你在灰度环境中部署了新的配置项,这些配置项才会出现在获取最新发布的结果中。

然而,当你在灰度环境中部署任何一个配置项后,通过Open API获取最新发布的结果将会包含灰度环境中的新配置项以及PRO环境中的配置项。这是因为在Apollo系统中,当你在灰度环境中部署新的配置项时,这些配置项会被合并到PRO环境的配置项中,因此,它们都会出现在获取最新发布的结果中。

这是根据Apollo系统的设计来的,如果你希望在创建灰度环境时自动继承PRO环境的配置项,你可能需要自己修改代码来实现这个功能。你可以参考Apollo的源代码来了解更多关于环境管理和发布管理的细节。

如果你有任何其他问题,或者需要更详细的解答,欢迎随时向我提问。

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

nobodyiam commented 6 months ago

Could you kindly arrange your scenario on the demo site to enhance clarity and ease of understanding?

xxyush commented 6 months ago

Could you kindly arrange your scenario on the demo site to enhance clarity and ease of understanding?

hi what is the demo site username and password?

nobodyiam commented 6 months ago

Oh, I thought it was well known as it's documented in the readme.md. Here it is:

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] commented 5 months ago

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.