@@ -223,28 +223,28 @@ type ActiveHealthCheck struct {
223223 // +kubebuilder:validation:Optional
224224 // +kubebuilder:validation:Enum=http;https;tcp;
225225 // Type is the health check type. Can be `http`, `https`, or `tcp`.
226- Type string `json:"type,omitempty" yaml:"type,omitempty"`
226+ Type string `json:"type,omitempty" yaml:"type,omitempty"`
227227 // Timeout sets health check timeout in seconds.
228228 Timeout time.Duration `json:"timeout,omitempty" yaml:"timeout,omitempty"`
229229 // +kubebuilder:validation:Minimum=0
230230 // Concurrency sets the number of targets to be checked at the same time.
231- Concurrency int `json:"concurrency,omitempty" yaml:"concurrency,omitempty"`
231+ Concurrency int `json:"concurrency,omitempty" yaml:"concurrency,omitempty"`
232232 // Host sets the upstream host.
233- Host string `json:"host,omitempty" yaml:"host,omitempty"`
233+ Host string `json:"host,omitempty" yaml:"host,omitempty"`
234234 // +kubebuilder:validation:Minimum=0
235235 // +kubebuilder:validation:Maximum=65535
236236 // Port sets the upstream port.
237- Port int32 `json:"port,omitempty" yaml:"port,omitempty"`
237+ Port int32 `json:"port,omitempty" yaml:"port,omitempty"`
238238 // HTTPPath sets the HTTP probe request path.
239- HTTPPath string `json:"httpPath,omitempty" yaml:"httpPath,omitempty"`
239+ HTTPPath string `json:"httpPath,omitempty" yaml:"httpPath,omitempty"`
240240 // StrictTLS sets whether to enforce TLS.
241- StrictTLS * bool `json:"strictTLS,omitempty" yaml:"strictTLS,omitempty"`
241+ StrictTLS * bool `json:"strictTLS,omitempty" yaml:"strictTLS,omitempty"`
242242 // RequestHeaders sets the request headers.
243- RequestHeaders []string `json:"requestHeaders,omitempty" yaml:"requestHeaders,omitempty"`
243+ RequestHeaders []string `json:"requestHeaders,omitempty" yaml:"requestHeaders,omitempty"`
244244 // Healthy configures the rules that define an upstream node as healthy.
245- Healthy * ActiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"`
246- // Unhealthy configures the rules that define an upstream node as unhealthy.
247- Unhealthy * ActiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"`
245+ Healthy * ActiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"`
246+ // Unhealthy configures the rules that define an upstream node as unhealthy.
247+ Unhealthy * ActiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"`
248248}
249249
250250// PassiveHealthCheck defines the conditions used to determine whether
@@ -303,7 +303,7 @@ type PassiveHealthCheckUnhealthy struct {
303303 // TCPFailures define the number of TCP failures to define an unhealthy target.
304304 TCPFailures int `json:"tcpFailures,omitempty" yaml:"tcpFailures,omitempty"`
305305 // Timeout sets health check timeout in seconds.
306- Timeouts int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
306+ Timeouts int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
307307}
308308
309309func init () {
0 commit comments