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
// TiProxyPortOrRange defines the main SQL port and optional extra listening range.
216
+
// The operator continues to use Port for Pod probes and the internal Service.
217
+
// Range is only propagated to TiProxy's proxy.port-range config.
218
+
// +kubebuilder:validation:XValidation:rule="!has(self.range) || self.range.start <= self.range.end",message="range.start must be less than or equal to range.end"
219
+
typeTiProxyPortOrRangestruct {
220
+
// Port defines the main SQL port exposed by the TiProxy Pod and Service.
221
+
// +kubebuilder:validation:Minimum=1
222
+
// +kubebuilder:validation:Maximum=65535
223
+
Port*int32`json:"port,omitempty"`
224
+
225
+
// Range defines additional SQL ports listened by TiProxy itself.
226
+
Range*TiProxyPortRange`json:"range,omitempty"`
227
+
}
228
+
229
+
typeTiProxyPortRangestruct {
230
+
// +kubebuilder:validation:Minimum=1
231
+
// +kubebuilder:validation:Maximum=65535
232
+
Startint32`json:"start"`
233
+
234
+
// +kubebuilder:validation:Minimum=1
235
+
// +kubebuilder:validation:Maximum=65535
236
+
Endint32`json:"end"`
237
+
}
238
+
215
239
typeTiProxyProbesstruct {
216
240
// Readiness defines the readiness probe for TiProxy.
217
241
// The default handler is a TCP socket on the client port.
0 commit comments