Skip to content
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

Merged
merged 5 commits into from
Sep 21, 2022

Conversation

adisuissa
Copy link
Contributor

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

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #23170 was opened by adisuissa.

see: more, trace.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #23170 (comment) was created by @adisuissa.

see: more, trace.

@markdroth
Copy link
Contributor

/lgtm api

…ation

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa
Copy link
Contributor Author

Assigning Matt for !Google review. This PR is a follow up to the 0 total-weight for weighted-clusters issue, which we discussed offline.
/assign @mattklein123

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

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