-
Notifications
You must be signed in to change notification settings - Fork 23
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
Remove the default route configuration #198
Merged
krithika369
merged 11 commits into
caraml-dev:main
from
krithika369:remove_default_route
May 20, 2022
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1567281
Remove unused default route property
06a3317
Router: Make the default_route_id only required for DefaultTuringRout…
f67f39c
Make Default Route ID optional for the Turing Router creater / update…
56dbcac
Update e2e tests
951e5ae
UI: Update router view / edit to stop handling default route explicitly
aab3263
UI: Exclude routes with traffic rules in the final/fallback response …
d216599
SDK: deprecate the default_route_id config
b0a08c2
SDK: Remove default route id from samples
c947108
Update user docs
e3c8438
Update OpenAPI bundle
02b7198
Address PR comments
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
"timeout": "5s" | ||
} | ||
], | ||
"default_route_id": "control", | ||
"experiment_engine": { | ||
"type": "nop" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
"timeout": "5s" | ||
} | ||
], | ||
"default_route_id": "control", | ||
"experiment_engine": { | ||
"type": "nop" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
api/turing/testdata/cluster/servicebuilder/router_configmap_no_default_route.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
id: test-svc | ||
routes: | ||
- endpoint: http://www.mocky.io/v2/5e4caccc310000e2cad8c071 | ||
id: control | ||
timeout: 2s | ||
type: PROXY | ||
strategy: | ||
properties: | ||
experiment_engine: nop | ||
type: fiber.DefaultTuringRoutingStrategy | ||
type: EAGER_ROUTER |
35 changes: 35 additions & 0 deletions
35
api/turing/testdata/cluster/servicebuilder/router_version_no_default_route.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"router": { | ||
"project_id": 10, | ||
"environment_name": "id-dev", | ||
"name": "test-svc" | ||
}, | ||
"version": 1, | ||
"status": "deployed", | ||
"image": "asia.gcr.io/gcp-project-id/turing-router:latest", | ||
"routes": [ | ||
{ | ||
"id": "control", | ||
"type": "PROXY", | ||
"endpoint": "http://www.mocky.io/v2/5e4caccc310000e2cad8c071", | ||
"timeout": "2s" | ||
} | ||
], | ||
"experiment_engine": { | ||
"type": "nop" | ||
}, | ||
"resource_request": { | ||
"min_replica": 2, | ||
"max_replica": 4, | ||
"cpu_request": "400m", | ||
"memory_request": "512Mi" | ||
}, | ||
"timeout": "5s", | ||
"log_config": { | ||
"log_level": "INFO", | ||
"custom_metrics_enabled": false, | ||
"fiber_debug_log_enabled": false, | ||
"jaeger_enabled": false, | ||
"result_logger_type": "nop" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't think this was ever meant to be there, it should have only been
default_route_id
. Removing it.