Remove default load-balancing strategy from CRD

This commit is contained in:
Kevin Pollet 2025-04-18 10:58:04 +02:00 committed by GitHub
parent 746cc80d0f
commit 2d617b3a65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 1 additions and 17 deletions

View file

@ -116,8 +116,8 @@ type LoadBalancerSpec struct {
// Strategy defines the load balancing strategy between the servers.
// Supported values are: wrr (Weighed round-robin) and p2c (Power of two choices).
// 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:default:=wrr
Strategy dynamic.BalancerStrategy `json:"strategy,omitempty"`
// PassHostHeader defines whether the client Host header is forwarded to the upstream Kubernetes Service.
// By default, passHostHeader is true.