-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
router: deprecating total_weight #23170
router: deprecating total_weight #23170
Conversation
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
/retest |
Retrying Azure Pipelines: |
/lgtm api |
…ation Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Assigning Matt for !Google review. This PR is a follow up to the 0 total-weight for weighted-clusters issue, which we discussed offline. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Commit Message: router: deprecating total_weight
Additional Description:
The
total_weight
field in weighted clusters was used to validate that the sum of weights isn't 0.This PR deprecates the field, and uses the sum of the clusters weights instead. This PR also validates that the sum of weights is above 0 (this constraint was relaxed in #21892).
Risk Level: Low
Testing: Updated current tests.
Docs Changes: Updated
Release Notes: Updated
Platform Specific Features: N/A.
Deprecated:
total_weight
from weights clusters.Signed-off-by: Adi Suissa-Peleg adip@google.com