-
Notifications
You must be signed in to change notification settings - Fork 9.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
*: add /health endpoint to grpc-proxy #8322
Conversation
50ccd8d
to
8a02e1f
Compare
393b236
to
c9a4ec9
Compare
can grpcproxy just have its own |
5d3713a
to
39c8ff0
Compare
@heyitsanthony PTAL. Instead exposed |
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 after fixing the permission denied case. Thanks!
proxy/grpcproxy/health.go
Outdated
ctx, cancel := context.WithTimeout(c.Ctx(), time.Second) | ||
_, err := c.Get(ctx, "a") | ||
cancel() | ||
h.Health = err == nil |
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.
err == nil || err == rpctypes.ErrPermissionDenied
in case a is locked down
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
No description provided.