Return 500 responses for invalid backends#443
Merged
arkodg merged 5 commits intoenvoyproxy:mainfrom Sep 29, 2022
Alice-Lilith:alicewasko/dev/invalid-backends-500
Merged
Return 500 responses for invalid backends#443arkodg merged 5 commits intoenvoyproxy:mainfrom Alice-Lilith:alicewasko/dev/invalid-backends-500
arkodg merged 5 commits intoenvoyproxy:mainfrom
Alice-Lilith:alicewasko/dev/invalid-backends-500
Conversation
arkodg
reviewed
Sep 28, 2022
arkodg
reviewed
Sep 28, 2022
arkodg
reviewed
Sep 28, 2022
arkodg
reviewed
Sep 28, 2022
Codecov Report
@@ Coverage Diff @@
## main #443 +/- ##
==========================================
+ Coverage 60.08% 62.09% +2.00%
==========================================
Files 40 40
Lines 4347 4406 +59
==========================================
+ Hits 2612 2736 +124
+ Misses 1583 1525 -58
+ Partials 152 145 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
lizan
reviewed
Sep 28, 2022
arkodg
reviewed
Sep 28, 2022
internal/gatewayapi/testdata/httproute-with-some-invalid-backend-refs-no-service.out.yaml
Outdated
Show resolved
Hide resolved
Contributor
|
can you also add the appropriate conformance test to |
Contributor
|
added 5 commits
September 28, 2022 15:05
Signed-off-by: AliceProxy <alicewasko@datawire.io>
Signed-off-by: AliceProxy <alicewasko@datawire.io>
Signed-off-by: AliceProxy <alicewasko@datawire.io>
Signed-off-by: AliceProxy <alicewasko@datawire.io>
Signed-off-by: AliceProxy <alicewasko@datawire.io>
Member
Author
That all I needed to do? Looks like they ran and passed. I checked the logs to confirm they really ran. |
arkodg
approved these changes
Sep 28, 2022
Contributor
arkodg
left a comment
There was a problem hiding this comment.
LGTM, thanks for adding this tricky feature !
Member
Author
Thanks for the many reviews after all my changes 😅 |
This was referenced Sep 28, 2022
lizan
approved these changes
Sep 29, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a HTTPRoute has invalid backends we need to return 500 responses for gateway API conformance. If there are no valid backends at all then a direct response is issued with status 500, if there is a mix of valid and invalid backends then a weighted cluster is used.
resolves #162