extended request options to support passing metadata match criteria#15863
extended request options to support passing metadata match criteria#15863alyssawilk merged 3 commits intoenvoyproxy:mainfrom
Conversation
|
/retest |
|
Retrying Azure Pipelines: |
zuercher
left a comment
There was a problem hiding this comment.
Thanks! See my comment below. Otherwise this looks good.
include/envoy/http/async_client.h
Outdated
There was a problem hiding this comment.
I think this method should follow the example of setHashPolicy and accept a const envoy::config::core::v3::Metadata&. That way callers don't need to use the implementation of MetadataMatchCriteria and aren't tempted to provide their own implementation.
|
@zuercher Thanks. 😄
|
|
I discussed this briefly with another maintainer and the conclusion was that AsyncClient is one of the primary interfaces that a user of envoy as a library has to contend with. So I still think it would be better to limit this to using the proto types used to configure the feature for a route. Perhaps adding a method on the RouteEntry that allows access to the metadata_match proto objects would make it easier to implement your use case? |
|
🤔 I agree with you, we can improve this part later. |
|
Only one commit. I refactored it to create a cleaner implementation. |
zuercher
left a comment
There was a problem hiding this comment.
Nice! I had one small comment, but otherwise looks good to me.
Signed-off-by: wbpcode <comems@msn.com>
Signed-off-by: wbpcode <comems@msn.com>
|
@alyssawilk can you take a second pass? |
alyssawilk
left a comment
There was a problem hiding this comment.
Code and tests look great!
@ggreenway is this worth a release note, or do you think it's fine as is.
|
@alyssawilk did you mean @zuercher ? Either way, I took a look; I don't think there's any public-facing change, so probably fine with no release note. |
…nvoyproxy#15863) Commit Message: extended request options to support passing metadata match criteria Additional Description: Extended request options to support passing metadata match criteria. Check envoyproxy#15163 for more info about that why we need this PR. This PR is just a possible solution. I would be willing to modify it if there is a more elegant solution. Risk Level: Low. Testing: Added. Docs Changes: N/A. Signed-off-by: wbpcode <comems@msn.com> Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
…nvoyproxy#15863) Commit Message: extended request options to support passing metadata match criteria Additional Description: Extended request options to support passing metadata match criteria. Check envoyproxy#15163 for more info about that why we need this PR. This PR is just a possible solution. I would be willing to modify it if there is a more elegant solution. Risk Level: Low. Testing: Added. Docs Changes: N/A. Signed-off-by: wbpcode <comems@msn.com>
Signed-off-by: wbpcode comems@msn.com
Commit Message:
extended request options to support passing metadata match criteria
Additional Description:
Extended request options to support passing metadata match criteria. Check #15163 for more info about that why we need this PR. This PR is just a possible solution. I would be willing to modify it if there is a more elegant solution.
Risk Level: Low.
Testing: Added.
Docs Changes: N/A.
Release Notes: N/A.