Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

chore(route): Refactor buildRoute() by reducing parameters #4407

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

shalier
Copy link
Contributor

@shalier shalier commented Dec 21, 2021

Description:
Refactored buildRoute() to take in a RouteWeightedClusters struct
also fixed a typo in scale test and resolves #4020

Signed-off-by: Shalier Xia [email protected]

Testing done:
Re-wrote unit test for buildRoute()

Affected area:

Functional Area
Tests [x ]
Other [x ]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

pkg/envoy/rds/route/route_config.go Outdated Show resolved Hide resolved
pkg/envoy/rds/route/route_config.go Outdated Show resolved Hide resolved
Refactored buildRoute() to take in a RouteWeightedClusters struct
also fixed a typo in scale test and resolves openservicemesh#4020

Signed-off-by: Shalier Xia <[email protected]>
@shalier shalier force-pushed the refactorBuildRoute branch from 3816231 to fae9888 Compare January 4, 2022 21:53
@shalier shalier requested a review from shashankram January 4, 2022 21:54
@draychev draychev merged commit d7e8309 into openservicemesh:main Jan 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chore: Refactor buildRoute() to take in rule.Route
3 participants