-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Support connection timeouts in BackendTrafficPolicy (#2411)
* API: Support Connection Timeouts in BackendTrafficPolicy Signed-off-by: Guy Daich <guy.daich@sap.com> * code review fixes Signed-off-by: Guy Daich <guy.daich@sap.com> * code review fixes 2 Signed-off-by: Guy Daich <guy.daich@sap.com> --------- Signed-off-by: Guy Daich <guy.daich@sap.com>
- Loading branch information
Showing
6 changed files
with
223 additions
and
0 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,43 @@ | ||
// 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 | ||
|
||
import gwapiv1 "sigs.k8s.io/gateway-api/apis/v1" | ||
|
||
// Timeout defines configuration for timeouts related to connections. | ||
type Timeout struct { | ||
// Timeout settings for TCP. | ||
// | ||
// +optional | ||
TCP *TCPTimeout `json:"tcp,omitempty"` | ||
|
||
// Timeout settings for HTTP. | ||
// | ||
// +optional | ||
HTTP *HTTPTimeout `json:"http,omitempty"` | ||
} | ||
|
||
type TCPTimeout struct { | ||
// The timeout for network connection establishment, including TCP and TLS handshakes. | ||
// Default: 10 seconds. | ||
// | ||
// +optional | ||
ConnectTimeout *gwapiv1.Duration `json:"connectTimeout,omitempty"` | ||
} | ||
|
||
type HTTPTimeout struct { | ||
// The idle timeout for an HTTP connection. Idle time is defined as a period in which there are no active requests in the connection. | ||
// Default: 1 hour. | ||
// | ||
// +optional | ||
ConnectionIdleTimeout *gwapiv1.Duration `json:"connectionIdleTimeout,omitempty"` | ||
|
||
// The maximum duration of an HTTP connection. | ||
// Default: unlimited. | ||
// | ||
// +optional | ||
MaxConnectionDuration *gwapiv1.Duration `json:"maxConnectionDuration,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