Skip to content

Commit 9f8251b

Browse files
committed
Change connections minimum to 1
1 parent 83182a9 commit 9f8251b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apis/v1alpha1/upstreamsettingspolicy_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type UpstreamKeepAlive struct {
7070
// Directive: https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
7171
//
7272
// +optional
73-
// +kubebuilder:validation:Minimum=0
73+
// +kubebuilder:validation:Minimum=1
7474
Connections *int32 `json:"connections,omitempty"`
7575

7676
// Requests sets the maximum number of requests that can be served through one keep-alive connection.

config/crd/bases/gateway.nginx.org_upstreamsettingspolicies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
connections are closed.
6262
Directive: https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
6363
format: int32
64-
minimum: 0
64+
minimum: 1
6565
type: integer
6666
requests:
6767
description: |-

0 commit comments

Comments
 (0)