Skip to content

Commit 6fa5e7d

Browse files
committed
update comment
1 parent 775cc89 commit 6fa5e7d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

apis/v1alpha1/upstreamsettingspolicy_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ type UpstreamSettingsPolicySpec struct {
5252
KeepAlive *UpstreamKeepAlive `json:"keepAlive,omitempty"`
5353

5454
// LoadBalancingMethod specifies the load balancing algorithm to be used for the upstream.
55+
// If not specified, NGINX Gateway Fabric defaults to `random two least_conn`,
56+
// which differs from the standard NGINX default `round-robin`.
5557
//
5658
// +optional
5759
LoadBalancingMethod *LoadBalancingType `json:"loadBalancingMethod,omitempty"`

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ spec:
8686
type: string
8787
type: object
8888
loadBalancingMethod:
89-
description: LoadBalancingMethod specifies the load balancing algorithm
90-
to be used for the upstream.
89+
description: |-
90+
LoadBalancingMethod specifies the load balancing algorithm to be used for the upstream.
91+
If not specified, NGINX Gateway Fabric defaults to `random two least_conn`,
92+
which differs from the standard NGINX default `round-robin`.
9193
enum:
9294
- ip_hash
9395
- random two least_conn

deploy/crds.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9613,8 +9613,10 @@ spec:
96139613
type: string
96149614
type: object
96159615
loadBalancingMethod:
9616-
description: LoadBalancingMethod specifies the load balancing algorithm
9617-
to be used for the upstream.
9616+
description: |-
9617+
LoadBalancingMethod specifies the load balancing algorithm to be used for the upstream.
9618+
If not specified, NGINX Gateway Fabric defaults to `random two least_conn`,
9619+
which differs from the standard NGINX default `round-robin`.
96189620
enum:
96199621
- ip_hash
96209622
- random two least_conn

0 commit comments

Comments
 (0)