-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
pilot: add support for grpc-web prefixed ports #10064
Conversation
f56ee18
to
51df265
Compare
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.
..
51df265
to
5afbbf8
Compare
Codecov Report
@@ Coverage Diff @@
## release-1.1 #10064 +/- ##
=============================================
+ Coverage 70% 71% +1%
=============================================
Files 442 442
Lines 41187 41147 -40
=============================================
+ Hits 28640 28820 +180
+ Misses 11141 10921 -220
Partials 1406 1406
Continue to review full report at Codecov.
|
bf8a021
to
c0aeae3
Compare
90618f8
to
ffccda9
Compare
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rshriram, venilnoronha The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ffccda9
to
60e3bc1
Compare
CLAs look good, thanks! |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
11 similar comments
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
60e3bc1
to
eb7c6f1
Compare
/test e2e-bookInfoTests-envoyv2-v1alpha3 |
a465b8d
to
eb7c6f1
Compare
This adds support for grpc-web prefixed port names. Whenever Istio notices a Service port prefixed with grpc-web, an additional envoy.grpc_web filter will be added to the http filters list in the HTTP connection manager for inbound sidecars. See https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/helloworld#configure-the-proxy for more information. Signed-off-by: Venil Noronha <veniln@vmware.com>
eb7c6f1
to
f2c7f6f
Compare
@venilnoronha: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This patch adds `envoy.grpc_web` filter to gateway when Gateway's port.protocol is `GRPC-WEB`. Currently istio-sidecar adds `envoy.grpc_web` filter when grpc-web prefixed port is used thanks to #10064. But it always needs side-car injection.
Signed-off-by: cpanato <ctadeu@gmail.com>
Description
This adds support for
grpc-web
prefixed port names. Whenever Istio notices aService
port prefixed withgrpc-web
, an additionalenvoy.grpc_web
filter will be added to the http filters list in the HTTP connection manager for inbound sidecars.Fixes #1368
Usage
To enable the
envoy.grpc_web
filter, users will now just need to use a service config similar to below. Thegrpc-web
prefix inname: grpc-web-port
will let Pilot know that theenvoy.grpc_web
filter should be enabled.One additional thing to do after deploying the service is to enable CORS on the
VirtualService
i.e. if the gRPC-Web based service is accessed externally. The following configuration should do the job.See https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/helloworld#configure-the-proxy for more information.