Skip to content

feat(router): add affinity and script rule management - #1553

Merged
robocanic merged 12 commits into
apache:developfrom
xiaobaicai66695:feat/affinity-script-config-center
Nov 2, 2026
Merged

robocanic merged 12 commits into
apache:developfrom
xiaobaicai66695:feat/affinity-script-config-center

Conversation

@xiaobaicai66695

@xiaobaicai66695 xiaobaicai66695 commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Scope

Consolidates the original config-center work in #1553 with the Console API work from #1554.

  • Adds Affinity and Script router-rule support for ZooKeeper and Nacos config centers.
  • Adds the protected Console CRUD, version, diff, and rollback APIs.
  • Preserves optional Affinity/Script fields across detail, edit, history, and rollback.
  • Preserves explicit false values for existing condition/tag router booleans.
  • For Nacos Script deletion, publishes a disabled transition before removing the dataId so existing Dubbo-Go consumers clear the active script.

ZooKeeper compatibility

Rules use the canonical grouped path /dubbo/config/dubbo/<name>. The legacy flat path /dubbo/config/<name> is intentionally neither read nor modified; existing flat entries remain untouched and must be migrated explicitly if needed.

Verification

  • go test ./pkg/core/resource/apis/mesh/v1alpha1 ./pkg/governor/zk ./pkg/governor/nacos2 ./pkg/discovery/zk ./pkg/console/router ./pkg/console/service
  • API-level Gin tests cover authenticated CRUD/search/version/diff/rollback and optional-field presence.

Supersedes #1554.

Loading
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.

4 participants