Skip to content

feat: unify and enhance the lifecycle of an instance#1440

Open
Saramanda9988 wants to merge 16 commits intoapache:developfrom
Saramanda9988:lifesycle
Open

feat: unify and enhance the lifecycle of an instance#1440
Saramanda9988 wants to merge 16 commits intoapache:developfrom
Saramanda9988:lifesycle

Conversation

@Saramanda9988
Copy link
Copy Markdown

@Saramanda9988 Saramanda9988 commented Mar 28, 2026

Please provide a description of this PR:

please refer to: #1399

What changed

  • Enhanced lifecycle state derivation for instances, including states such as Starting, Serving, Draining, Terminating, and Error.
  • Improved runtime/RPC instance merge and cleanup behavior so instance resources are updated more accurately when one source disappears.
  • Refined Kubernetes runtime instance identification and Pod phase detection, with stricter matching by mesh/app/IP/RPC port and better delete handling in informers.
  • Updated sample/admin Kubernetes config to support pod watch selector and Dubbo RPC/registry labels.
  • Updated Console UI to display lifecycle state in instance views, added manual refresh for the instance list

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

  • Docs
  • Installation
  • User Experience
  • Dubboctl
  • Console
  • Core Component

Please check any characteristics that apply to this pull request.

screenshot

688a9e56e44c538c3de8a7832c146d6d 09f994309f99d983c6ebc52f3094673b b14c1a8429846bbcaf38ece7c9bf7f76

Copy link
Copy Markdown
Contributor

@robocanic robocanic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! I've reviewd the whole code change and the quality is really high. I left some comments and hope you can discuss them with me.

@robocanic
Copy link
Copy Markdown
Contributor

Please reslove the conflicts @Saramanda9988

# Conflicts:
#	pkg/core/discovery/subscriber/rpc_instance.go
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

@Saramanda9988
Copy link
Copy Markdown
Author

Saramanda9988 commented Apr 2, 2026

@robocanic Done, and the current style of the instance detail is as followed:
6b9f7212644a55df17ffd9bc88222e9a

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

Successfully merging this pull request may close these issues.

2 participants