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

Add support in route checker tool for runtimes in routes #7418

Merged
merged 8 commits into from
Jul 8, 2019

Conversation

jyotimahapatra
Copy link
Contributor

@jyotimahapatra jyotimahapatra commented Jun 27, 2019

Signed-off-by: Jyoti Mahapatra jmahapatra@lyft.com

Description: Support testing routes with runtimes
Risk Level: Low
Testing: Added test cases for the route checker tool
Docs Changes:
Release Notes:
[Optional Fixes #Issue] #7264 #730

Jyoti Mahapatra added 2 commits June 27, 2019 13:37
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
@jyotimahapatra
Copy link
Contributor Author

@mattklein123 I will update the docs if the general approach looks right.

@jyotimahapatra jyotimahapatra changed the title runtime Add support in route checker tool for runtimes in routes Jun 27, 2019
@jyotimahapatra
Copy link
Contributor Author

#7264
#730

Jyoti Mahapatra added 2 commits June 27, 2019 13:50
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
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.

Generally LGTM with some small questions/comments. Thank you!

/wait

@@ -65,6 +65,9 @@ message ValidationInput {
// The “:authority”, “:path”, “:method”, “x-forwarded-proto”, and “x-envoy-internal” fields are
// specified by the other config options and should not be set here.
repeated envoy.api.v2.core.HeaderValue additional_headers = 8;

// Enable a runtime flag
Copy link
Member

Choose a reason for hiding this comment

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

Don't you want to allow a percentage here so that the user can test different decisions? I'm a little confused about the semantics. Can you clarify in the documentation more?

Copy link
Contributor Author

@jyotimahapatra jyotimahapatra Jul 4, 2019

Choose a reason for hiding this comment

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

@mattklein123 The percentage is guided by the existing random_value property. I have added a test to demonstrate this.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, thanks. Can you add more docs here to indicate that the random_value property is used to effect the settings?

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Jyoti Mahapatra added 2 commits July 4, 2019 12:39
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
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.

Awesome, LGTM, thanks. Two small comments.

/wait

@@ -65,6 +65,9 @@ message ValidationInput {
// The “:authority”, “:path”, “:method”, “x-forwarded-proto”, and “x-envoy-internal” fields are
// specified by the other config options and should not be set here.
repeated envoy.api.v2.core.HeaderValue additional_headers = 8;

// Enable a runtime flag
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, thanks. Can you add more docs here to indicate that the random_value property is used to effect the settings?

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
@jyotimahapatra
Copy link
Contributor Author

@mattklein123 I added some more explanation in the comments.

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.

Thanks!

@mattklein123 mattklein123 merged commit 7032710 into envoyproxy:master Jul 8, 2019
@jyotima jyotima deleted the run branch September 14, 2019 00:03
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.

2 participants