Skip to content

feat(router): add affinity and script resource contracts - #1552

Open
xiaobaicai66695 wants to merge 2 commits into
apache:developfrom
xiaobaicai66695:feat/affinity-script-resource-contract
Open

xiaobaicai66695 wants to merge 2 commits into
apache:developfrom
xiaobaicai66695:feat/affinity-script-resource-contract

Conversation

@xiaobaicai66695

@xiaobaicai66695 xiaobaicai66695 commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Related issue

Related to #1547.

Summary

  • add resource contracts and codecs for affinity and script router rules
  • register rule suffixes and version normalization support
  • cover YAML/resource conversion behavior

Testing

  • go test ./pkg/core/resource/apis/mesh/v1alpha1

Notes

This is the first PR in a stacked series. Follow-up PRs add config-center propagation, Console APIs, the Vue UI, and E2E coverage.

@robocanic

Copy link
Copy Markdown
Contributor

yangrui

@AsperforMias AsperforMias left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Against #1547, this PR only covers the resource and YAML contract. Kinds, suffixes, affinityAware, v3.1, and the pre-write checks are in place. Config center, API, UI, and E2E belong in the follow-ups.

What blocks this is enabled / runtime. If those keys are missing, a read-back that gets published again writes them as false and turns off a rule that is currently active. Details on the lines below.

Comment thread pkg/core/resource/apis/mesh/v1alpha1/router_rule_codec.go Outdated
Comment thread pkg/core/resource/apis/mesh/v1alpha1/router_rule_codec.go Outdated
Comment thread pkg/core/resource/apis/mesh/v1alpha1/router_rule_codec.go
@sonarqubecloud

Copy link
Copy Markdown

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.

3 participants