Remove default load-balancing strategy from CRD
This commit is contained in:
parent
746cc80d0f
commit
2d617b3a65
7 changed files with 1 additions and 17 deletions
|
@ -290,7 +290,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -1223,7 +1222,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -2986,7 +2984,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -3114,7 +3111,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -3320,7 +3316,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
|
|
@ -290,7 +290,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
|
|
@ -454,7 +454,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
|
|
@ -314,7 +314,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -442,7 +441,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -648,7 +646,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
|
|
@ -290,7 +290,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -1223,7 +1222,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -2986,7 +2984,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -3114,7 +3111,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
@ -3320,7 +3316,6 @@ spec:
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
strategy:
|
strategy:
|
||||||
default: wrr
|
|
||||||
description: |-
|
description: |-
|
||||||
Strategy defines the load balancing strategy between the servers.
|
Strategy defines the load balancing strategy between the servers.
|
||||||
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
|
|
1
integration/testdata/rawdata-redis.json
vendored
1
integration/testdata/rawdata-redis.json
vendored
|
@ -244,7 +244,6 @@
|
||||||
"url": "http://10.0.1.3:8889"
|
"url": "http://10.0.1.3:8889"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"strategy": "wrr",
|
|
||||||
"passHostHeader": true,
|
"passHostHeader": true,
|
||||||
"responseForwarding": {
|
"responseForwarding": {
|
||||||
"flushInterval": "100ms"
|
"flushInterval": "100ms"
|
||||||
|
|
|
@ -116,8 +116,8 @@ type LoadBalancerSpec struct {
|
||||||
// Strategy defines the load balancing strategy between the servers.
|
// Strategy defines the load balancing strategy between the servers.
|
||||||
// Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
// Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
|
||||||
// RoundRobin value is deprecated and supported for backward compatibility.
|
// RoundRobin value is deprecated and supported for backward compatibility.
|
||||||
|
// TODO: when the deprecated RoundRobin value will be removed, set the default value to wrr.
|
||||||
// +kubebuilder:validation:Enum=wrr;p2c;RoundRobin
|
// +kubebuilder:validation:Enum=wrr;p2c;RoundRobin
|
||||||
// +kubebuilder:default:=wrr
|
|
||||||
Strategy dynamic.BalancerStrategy `json:"strategy,omitempty"`
|
Strategy dynamic.BalancerStrategy `json:"strategy,omitempty"`
|
||||||
// PassHostHeader defines whether the client Host header is forwarded to the upstream Kubernetes Service.
|
// PassHostHeader defines whether the client Host header is forwarded to the upstream Kubernetes Service.
|
||||||
// By default, passHostHeader is true.
|
// By default, passHostHeader is true.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue