-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: Support Circuit Breakers in BackendTrafficPolicy (#2284)
* API: Support Circuit Breakers in BackendTrafficPolicy Signed-off-by: Guy Daich <guy.daich@sap.com> * reivew fixes Signed-off-by: Guy Daich <guy.daich@sap.com> * Implement API changes Signed-off-by: Guy Daich <guy.daich@sap.com> --------- Signed-off-by: Guy Daich <guy.daich@sap.com> Co-authored-by: zirain <zirain2009@gmail.com>
- Loading branch information
Showing
6 changed files
with
174 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright Envoy Gateway Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// The full text of the Apache license is available in the LICENSE file at | ||
// the root of the repo. | ||
|
||
package v1alpha1 | ||
|
||
// CircuitBreaker defines the Circuit Breaker configuration. | ||
type CircuitBreaker struct { | ||
// The maximum number of connections that Envoy will establish to the referenced backend defined within a xRoute rule. | ||
// | ||
// +kubebuilder:validation:Minimum=0 | ||
// +kubebuilder:validation:Maximum=4294967295 | ||
// +kubebuilder:default=1024 | ||
// +optional | ||
MaxConnections *int64 `json:"maxConnections,omitempty"` | ||
|
||
// The maximum number of pending requests that Envoy will queue to the referenced backend defined within a xRoute rule. | ||
// | ||
// +kubebuilder:validation:Minimum=0 | ||
// +kubebuilder:validation:Maximum=4294967295 | ||
// +kubebuilder:default=1024 | ||
// +optional | ||
MaxPendingRequests *int64 `json:"maxPendingRequests,omitempty"` | ||
|
||
// The maximum number of parallel requests that Envoy will make to the referenced backend defined within a xRoute rule. | ||
// | ||
// +kubebuilder:validation:Minimum=0 | ||
// +kubebuilder:validation:Maximum=4294967295 | ||
// +kubebuilder:default=1024 | ||
// +optional | ||
MaxParallelRequests *int64 `json:"maxParallelRequests,omitempty"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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