You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: Add support for SlowStart configuration for ClientSideWeightedRoundRobin load balancer in Gateway CRDs, configurations, and tests. Adjust validation rules and documentation accordingly.
// +kubebuilder:validation:XValidation:rule="self.type == 'ConsistentHash' ? has(self.consistentHash) : !has(self.consistentHash)",message="If LoadBalancer type is consistentHash, consistentHash field needs to be set."
14
14
// +kubebuilder:validation:XValidation:rule="self.type == 'ClientSideWeightedRoundRobin' ? has(self.clientSideWeightedRoundRobin) : !has(self.clientSideWeightedRoundRobin)",message="If LoadBalancer type is ClientSideWeightedRoundRobin, clientSideWeightedRoundRobin field needs to be set."
15
-
// +kubebuilder:validation:XValidation:rule="self.type in ['Random', 'ConsistentHash', 'ClientSideWeightedRoundRobin'] ? !has(self.slowStart) : true ",message="Currently SlowStart is only supported for RoundRobinand LeastRequest load balancers."
15
+
// +kubebuilder:validation:XValidation:rule="self.type in ['Random', 'ConsistentHash'] ? !has(self.slowStart) : true ",message="Currently SlowStart is only supported for RoundRobin, LeastRequest, and ClientSideWeightedRoundRobin load balancers."
16
16
// +kubebuilder:validation:XValidation:rule="self.type in ['ConsistentHash', 'ClientSideWeightedRoundRobin'] ? !has(self.zoneAware) : true ",message="Currently ZoneAware is only supported for LeastRequest, Random, and RoundRobin load balancers."
17
17
typeLoadBalancerstruct {
18
18
// Type decides the type of Load Balancer policy.
@@ -47,7 +47,7 @@ type LoadBalancer struct {
47
47
48
48
// SlowStart defines the configuration related to the slow start load balancer policy.
49
49
// If set, during slow start window, traffic sent to the newly added hosts will gradually increase.
50
-
// Currently this is only supported for RoundRobinand LeastRequest load balancers
50
+
// Supported for RoundRobin, LeastRequest, and ClientSideWeightedRoundRobin load balancers.
51
51
//
52
52
// +optional
53
53
SlowStart*SlowStart`json:"slowStart,omitempty"`
@@ -160,7 +160,6 @@ type Cookie struct {
160
160
161
161
// ClientSideWeightedRoundRobin defines configuration for Envoy's Client-Side Weighted Round Robin policy.
162
162
// See Envoy proto: envoy.extensions.load_balancing_policies.client_side_weighted_round_robin.v3.ClientSideWeightedRoundRobin
163
-
// Note: SlowStart is not supported for this policy in Envoy Gateway at this time.
164
163
typeClientSideWeightedRoundRobinstruct {
165
164
// A given endpoint must report load metrics continuously for at least this long before the endpoint weight will be used.
0 commit comments