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
Copy file name to clipboardExpand all lines: api/v1alpha1/shared_types.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -585,6 +585,8 @@ type BackendCluster struct {
585
585
586
586
// ClusterSettings provides the various knobs that can be set to control how traffic to a given
587
587
// backend will be configured.
588
+
//
589
+
// +kubebuilder:validation:XValidation:rule="!((has(self.connection) && has(self.connection.preconnect) && has(self.connection.preconnect.predictivePercent)) && !(has(self.loadBalancer) && has(self.loadBalancer.type) && self.loadBalancer.type in ['Random', 'RoundRobin']))",message="predictivePercent in preconnect policy only works with RoundRobin or Random load balancers"
588
590
typeClusterSettingsstruct {
589
591
// LoadBalancer policy to apply when routing traffic from the gateway to
590
592
// the backend endpoints. Defaults to `LeastRequest`.
0 commit comments