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
// +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 in ['Random', 'ConsistentHash'] ? !has(self.slowStart) : true ",message="Currently SlowStart is only supported for RoundRobin and LeastRequest load balancers."
15
-
// +kubebuilder:validation:XValidation:rule="self.type == 'ConsistentHash' ? !has(self.zoneAware) : true ",message="Currently ZoneAware is only supported for LeastRequest, Random, and RoundRobin load balancers."
15
+
// +kubebuilder:validation:XValidation:rule="self.type in ['ConsistentHash'] ? !has(self.zoneAware) : true ",message="Currently ZoneAware is only supported for LeastRequest, Random, and RoundRobin load balancers."
// EndpointOverrideExtractFrom defines a source to extract endpoint override information from.
203
+
// +union
204
+
//
205
+
// +kubebuilder:validation:XValidation:rule="(has(self.header) && !has(self.metadata)) || (!has(self.header) && has(self.metadata))",message="Exactly one of header or metadata must be set."
206
+
typeEndpointOverrideExtractFromstruct {
207
+
// Header defines the header to get the override endpoint addresses.
208
+
// The header value must specify at least one endpoint in `IP:Port` format or multiple endpoints in `IP:Port,IP:Port,...` format.
209
+
// For example `10.0.0.5:8080` or `[2600:4040:5204::1574:24ae]:80`.
210
+
// The IPv6 address is enclosed in square brackets.
211
+
//
212
+
// +optional
213
+
Header*string`json:"header,omitempty"`
214
+
215
+
// Metadata defines the metadata key to get the override endpoint addresses from the request dynamic metadata.
216
+
// If set this field then it will take precedence over the header field.
0 commit comments