-
Notifications
You must be signed in to change notification settings - Fork 273
Add *_headers_to_add to ClusterWeight
#441
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,6 +208,26 @@ message WeightedCluster { | |
| // cluster with metadata matching that set in metadata_match will be | ||
| // considered. The filter name should be specified as *envoy.lb*. | ||
| Metadata metadata_match = 3; | ||
|
|
||
| // Specifies a list of headers to be added to requests when this cluster is selected | ||
| // through the enclosing :ref:`envoy_api_msg_route.RouteAction`. | ||
| // Headers specified at this level are applied before headers from the enclosing | ||
| // :ref:`envoy_api_msg_route.RouteAction`, | ||
| // :ref:`envoy_api_msg_route.VirtualHost`, and | ||
| // :ref:`envoy_api_msg_route.RouteConfiguration`. For more information, including details on | ||
| // header value syntax, see the documentation on :ref:`custom request headers | ||
| // <config_http_conn_man_headers_custom_request_headers>`. | ||
| repeated HeaderValueOption request_headers_to_add = 4; | ||
|
|
||
| // Specifies a list of headers to be added to responses when this cluster is selected | ||
| // through the enclosing :ref:`envoy_api_msg_route.RouteAction`. | ||
| // Headers specified at this level are applied before headers from the enclosing | ||
| // :ref:`envoy_api_msg_route.RouteAction`, | ||
| // :ref:`envoy_api_msg_route.VirtualHost`, and | ||
| // :ref:`envoy_api_msg_route.RouteConfiguration`. For more information, including details on | ||
| // header value syntax, see the documentation on :ref:`custom request headers | ||
| // <config_http_conn_man_headers_custom_request_headers>`. | ||
| repeated HeaderValueOption response_headers_to_add = 5; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we go ahead an put
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 might as well be consistent
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added Now it feels like it should be a separate proto, there is plenty of repetition in this file. message HeaderAction {
repeated HeaderValueOption request_headers_to_add = 1;
repeated HeaderValueOption response_headers_to_add = 2;
repeated string response_headers_to_remove = 3;
}
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, we can't refactor, as the other locations that this occurs in are frozen. |
||
| } | ||
|
|
||
| // Specifies one or more upstream clusters associated with the route. | ||
|
|
||
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.
Please add the not implemented tags unless the associated Envoy PR is going to get posted at the same time.