Conversation
|
Hi @ckcd. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
pkg/config/validation/validation.go
Outdated
There was a problem hiding this comment.
Can we remove this duplication and have these code mapping defined at a common place?
There was a problem hiding this comment.
any suggestion? cause I cannot find a common place or any types dir. And the route.go(pilot/pkg/...) and validate.go(pkg/...) are in very different path.
There was a problem hiding this comment.
somewhere in 'pkg/util/grpc.go` ?
There was a problem hiding this comment.
Cool, I will do this change tomorrow, thanks~
There was a problem hiding this comment.
Done, please take a look.
howardjohn
left a comment
There was a problem hiding this comment.
LGTM but we need to decide if we want string or int. Once we implement it we cannot change
61a116a to
23c1cec
Compare
4af88d6 to
297ef8e
Compare
|
/label release-notes-none |
yes it's hard to choose. But I think |
|
BTW seems we need a @howardjohn @ramaraochavali PTAL. |
|
PTAL, thanks~ |
|
/test integ-pilot-k8s-tests_istio |
|
/test release-notes_istio |
| HttpStatus: uint32(a.HttpStatus), | ||
| } | ||
| case *networking.HTTPFaultInjection_Abort_GrpcStatus: | ||
| code := grpcutil.SupportedGRPCStatus[a.GrpcStatus] |
There was a problem hiding this comment.
@ckcd What if an invalid gRPC status code is passed? Is the status code validated somewhere before the lookup?
There was a problem hiding this comment.
Yes it's in pkg/config/validation/validation.go in this PR.
|
/test integ-pilot-multicluster-tests_istio |
|
@howardjohn @rshriram @linsun @costinm |
| } | ||
|
|
||
| func validateGPRCStatus(status string) error { | ||
| if _, ok := grpcutil.SupportedGRPCStatus[status]; !ok { |
There was a problem hiding this comment.
I suspect a user may get confused by this. Can we expand this to say something like:
gRPC status "foo" is not supported. See https://github.com/grpc/grpc/blob/master/doc/statuscodes.md for a list of supported codes, for example "NOT_FOUND"`
This makes it clear that not_found or 5 are not valid.
|
@ckcd: PR needs rebase. DetailsInstructions 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'd like to use the fault injection for gRPC, so what's the current status of this PR? |
|
@ckcd: The following tests failed, say
DetailsInstructions 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. |
|
Would be great to revive this (and add integ test at ) |
Signed-off-by: su225 <suchithjn22@gmail.com>
…ault injection) (#39295) * resurrect PR - #26059 Signed-off-by: su225 <suchithjn22@gmail.com> * add gRPC status checker Signed-off-by: su225 <suchithjn22@gmail.com> * add gRPC abort integration test Signed-off-by: su225 <suchithjn22@gmail.com> * add release notes Signed-off-by: su225 <suchithjn22@gmail.com> * make linter happy * fix release notes Signed-off-by: su225 <suchithjn22@gmail.com>
|
Merged in #39295. Thanks! |
Implement of
grpc statusinfault abort.e.g.
The related api is in istio/api:virtual_service.proto#L1816 and for now it's
hide_from_docs.And we discuss about whether the type of
GrpcStatusshould bestringoruint32in #24698. cc @howardjohn[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure