-
Notifications
You must be signed in to change notification settings - Fork 347
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
feat(translator): Implement BTP CircuitBreaker API #2330
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2330 +/- ##
==========================================
- Coverage 64.72% 64.71% -0.01%
==========================================
Files 113 113
Lines 16445 16557 +112
==========================================
+ Hits 10644 10715 +71
- Misses 5130 5168 +38
- Partials 671 674 +3 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
func setCircuitBreakerPolicyErrorCondition(policy *egv1a1.BackendTrafficPolicy) { | ||
message := "Unable to translate Circuit Breaker" |
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.
can we pass an extra errMsg
to the func to add some more error msg details such as invalid maxPendingRequests value
etc
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.
done
the PR is looking really good, thanks for adding an e2e as well ! |
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.
some nits, lgtm, thanks
} | ||
|
||
if pcb.MaxParallelRequests != nil { | ||
if ui32, ok := int64ToUint32(*pcb.MaxParallelRequests); ok { |
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.
can we add some test here? make sure int64ToUint32
works as expected
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.
done
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.
Thanks, this PR overall looks good ! Pretty clear. Would love to add more e2e tests and a user guide docs in a follow-up.
Signed-off-by: Guy Daich <guy.daich@sap.com>
Signed-off-by: Guy Daich <guy.daich@sap.com>
Signed-off-by: Guy Daich <guy.daich@sap.com>
Signed-off-by: Guy Daich <guy.daich@sap.com>
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 thanks !
What type of PR is this?
Feature, implementation of API defined in #2284
What this PR does / why we need it:
Add support for configuring Envoy's circuit breaking settings.
Which issue(s) this PR fixes:
Fixes #2125