Skip to content

Commit

Permalink
api: add per_host_thresholds to CircuitBreakers
Browse files Browse the repository at this point in the history
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
  • Loading branch information
jukie committed Feb 5, 2025
1 parent 36fdc0b commit 27639f4
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/v1alpha1/circuitbreaker_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,20 @@ type CircuitBreaker struct {
// +kubebuilder:validation:Maximum=4294967295
// +optional
MaxRequestsPerConnection *int64 `json:"maxRequestsPerConnection,omitempty"`

// Defines per-host Circuit Breaker thresholds
// +optional
// +notImplementedHide
PerHostThresholds *PerHostCircuitBreakers `json:"perHostThresholds,omitempty"`
}

// PerHostCircuitBreakers defines the per-host Circuit Breaker configuration.
type PerHostCircuitBreakers struct {
// The maximum number of connections that Envoy will establish per-host to the referenced backend defined within a xRoute rule.
//
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=4294967295
// +optional
// +notImplementedHide
MaxConnections *int64 `json:"maxConnections,omitempty"`
}
25 changes: 25 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3050,6 +3050,19 @@ _Appears in:_
| `disableMergeSlashes` | _boolean_ | false | | DisableMergeSlashes allows disabling the default configuration of merging adjacent<br />slashes in the path.<br />Note that slash merging is not part of the HTTP spec and is provided for convenience. |


#### PerHostCircuitBreakers



PerHostCircuitBreakers defines the per-host Circuit Breaker configuration.

_Appears in:_
- [CircuitBreaker](#circuitbreaker)

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |


#### PerRetryPolicy


Expand Down
13 changes: 13 additions & 0 deletions site/content/zh/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3050,6 +3050,19 @@ _Appears in:_
| `disableMergeSlashes` | _boolean_ | false | | DisableMergeSlashes allows disabling the default configuration of merging adjacent<br />slashes in the path.<br />Note that slash merging is not part of the HTTP spec and is provided for convenience. |


#### PerHostCircuitBreakers



PerHostCircuitBreakers defines the per-host Circuit Breaker configuration.

_Appears in:_
- [CircuitBreaker](#circuitbreaker)

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |


#### PerRetryPolicy


Expand Down

0 comments on commit 27639f4

Please sign in to comment.