Skip to content

Keep replacing route policies out of shared clusters #9588

Description

@zhaohuabing

Keep replacing route policies out of shared clusters

When two rules reference the same backend, but one has a more-specific BackendTrafficPolicy with mergeType unset, that policy must completely replace the gateway policy. Because merge eligibility only treats fields explicitly set by the route policy as cluster-scoped, both rules can still share a BackendCluster; this unconditional loop then installs the gateway policy's circuit breaker, health check, load balancer, and other cluster settings on that shared cluster, so the replacing rule still inherits settings it explicitly overrides. Such routes must be demerged or clusters must be partitioned by their effective policy set.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #9477 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions