-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* api: connection limit Signed-off-by: Guy Daich <[email protected]> * Apply suggestions from code review Co-authored-by: Arko Dasgupta <[email protected]> Signed-off-by: Guy Daich <[email protected]> * fix gen Signed-off-by: Guy Daich <[email protected]> --------- Signed-off-by: Guy Daich <[email protected]> Co-authored-by: Arko Dasgupta <[email protected]>
- Loading branch information
Showing
5 changed files
with
163 additions
and
25 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 | ||
|
||
import gwapiv1 "sigs.k8s.io/gateway-api/apis/v1" | ||
|
||
// Connection allows users to configure connection-level settings | ||
type Connection struct { | ||
// Limit defines limits related to connections | ||
// | ||
// +optional | ||
Limit *ConnectionLimit `json:"limit,omitempty"` | ||
} | ||
|
||
type ConnectionLimit struct { | ||
// Value of the maximum concurrent connections limit. | ||
// When the limit is reached, incoming connections will be closed after the CloseDelay duration. | ||
// Default: unlimited. | ||
// | ||
// +optional | ||
// +kubebuilder:validation:Minimum=0 | ||
Value *int64 `json:"value,omitempty"` | ||
|
||
// CloseDelay defines the delay to use before closing connections that are rejected | ||
// once the limit value is reached. | ||
// Default: none. | ||
// | ||
// +optional | ||
CloseDelay *gwapiv1.Duration `json:"closeDelay,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