Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

remove on create initial metadata#461

Merged
jplevyak merged 1 commit intoenvoyproxy:masterfrom
bianpengyuan:remove-on-create-initial-metadata
Mar 20, 2020
Merged

remove on create initial metadata#461
jplevyak merged 1 commit intoenvoyproxy:masterfrom
bianpengyuan:remove-on-create-initial-metadata

Conversation

@bianpengyuan
Copy link
Copy Markdown
Contributor

Signed-off-by: Pengyuan Bian bianpengyuan@google.com

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: Pengyuan Bian <bianpengyuan@google.com>
Copy link
Copy Markdown
Contributor

@jplevyak jplevyak left a comment

Choose a reason for hiding this comment

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

I was going to change the ABI to include initial metadata in the proxy_grpc_call and proxy_grpc_stream ABI calls and then handle the create call internally. This would be just an additional Pairs argument to the grpcCall SDK. WDYT? I can take over this PR and make that change.

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

bianpengyuan commented Mar 20, 2020

We don't need to actually. There is already a option in GrpcService that adds the initial metadata. https://github.com/envoyproxy/envoy/blob/9186ebf374b1bd7d7c65ed1cec748377f88ec0a7/api/envoy/api/v2/core/grpc_service.proto#L225 With that I think we could just remove this function from ABI without adding that param.

@jplevyak jplevyak merged commit 15a0904 into envoyproxy:master Mar 20, 2020
@PiotrSikora
Copy link
Copy Markdown
Contributor

While the initial metadata can indeed be set in the GrpcService proto, you need to modify proto for each request and you're mixing service and per-stream metadata in a weird way, IMHO.

I think we should still add the initial metadata to the calls, like @jplevyak mentioned, and as we discussed in the past. What do you think?

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

Yeah that makes sense to me. John talked to me offline and he is going to work on the PR to add that param. He mentioned the other reason though that GrpcService proto is Envoy specific and we want to make ABI proxy neutral.

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.

3 participants