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

Backport of NET-2903 Normalize weight for http routes into release/1.15.x #16532

Conversation

hc-github-team-consul-core
Copy link
Contributor

@hc-github-team-consul-core hc-github-team-consul-core commented Mar 3, 2023

Backport

This PR is auto-generated from #16512 to be assessed for backporting due to the inclusion of the label backport/1.15.

The below text is copied from the body of the original PR.


Description

Currently, if the weight of an HTTPRoute Service is unspecified or set to 0, the service will not be properly setup to have traffic routed to it.
These changes normalize the weight of a service on an HTTPRoute. If the weight is not specified or is set to 0, it will be normalized to 1.

Testing & Reproduction steps

Start consul with changes from branch
Use this gist to setup HTTPRoute services that have no weight defined.
You should not see an error.

Links

This prevents the bug seen in this issue

PR Checklist

  • updated test coverage
  • external facing docs updated
  • not a security concern

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/net-2903-apigw-http-route-service-weight-0/rarely-trusted-vulture branch from d8a3a08 to 3c0a363 Compare March 3, 2023 21:40
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/net-2903-apigw-http-route-service-weight-0/rarely-trusted-vulture branch from 30790d5 to ac6f8f8 Compare March 3, 2023 21:40
@github-actions github-actions bot added the type/docs Documentation needs to be created/updated/clarified label Mar 3, 2023
Copy link

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

* NET-2903 Normalize weight for http routes

* Update website/content/docs/connect/gateways/api-gateway/configuration/http-route.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
@andrewstucki andrewstucki marked this pull request as ready for review March 3, 2023 21:51
@andrewstucki andrewstucki requested a review from a team as a code owner March 3, 2023 21:51
@andrewstucki andrewstucki merged commit 2f8de3c into release/1.15.x Mar 3, 2023
@andrewstucki andrewstucki deleted the backport/net-2903-apigw-http-route-service-weight-0/rarely-trusted-vulture branch March 3, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Documentation needs to be created/updated/clarified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants