Skip to content

Commit 7f3e3fb

Browse files
docs: correct health check unhealthy timeout description (#330)
1 parent 849987d commit 7f3e3fb

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

api/v2/apisixupstream_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ type PassiveHealthCheckUnhealthy struct {
313313
// +kubebuilder:validation:Maximum=254
314314
// TCPFailures define the number of TCP failures to define an unhealthy target.
315315
TCPFailures int `json:"tcpFailures,omitempty" yaml:"tcpFailures,omitempty"`
316-
// Timeout sets health check timeout in seconds.
317316
// +kubebuilder:validation:Minimum=1
318317
// +kubebuilder:validation:Maximum=254
318+
// Timeout sets the number of timeouts to define an unhealthy target.
319319
Timeouts int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
320320
}
321321

config/crd/bases/apisix.apache.org_apisixupstreams.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ spec:
190190
minimum: 0
191191
type: integer
192192
timeout:
193-
description: Timeout sets health check timeout in seconds.
193+
description: Timeout sets the number of timeouts to define
194+
an unhealthy target.
194195
maximum: 254
195196
minimum: 1
196197
type: integer
@@ -252,7 +253,8 @@ spec:
252253
minimum: 0
253254
type: integer
254255
timeout:
255-
description: Timeout sets health check timeout in seconds.
256+
description: Timeout sets the number of timeouts to define
257+
an unhealthy target.
256258
maximum: 254
257259
minimum: 1
258260
type: integer
@@ -447,8 +449,8 @@ spec:
447449
minimum: 0
448450
type: integer
449451
timeout:
450-
description: Timeout sets health check timeout in
451-
seconds.
452+
description: Timeout sets the number of timeouts
453+
to define an unhealthy target.
452454
maximum: 254
453455
minimum: 1
454456
type: integer
@@ -510,8 +512,8 @@ spec:
510512
minimum: 0
511513
type: integer
512514
timeout:
513-
description: Timeout sets health check timeout in
514-
seconds.
515+
description: Timeout sets the number of timeouts
516+
to define an unhealthy target.
515517
maximum: 254
516518
minimum: 1
517519
type: integer

docs/en/latest/reference/api-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ UpstreamActiveHealthCheckHealthy defines the conditions used to actively determi
661661
| `httpCodes` _integer array_ | HTTPCodes define a list of HTTP status codes that are considered unhealthy. |
662662
| `httpFailures` _integer_ | HTTPFailures define the number of HTTP failures to define an unhealthy target. |
663663
| `tcpFailures` _integer_ | TCPFailures define the number of TCP failures to define an unhealthy target. |
664-
| `timeout` _integer_ | Timeout sets health check timeout in seconds. |
664+
| `timeout` _integer_ | Timeout sets the number of timeouts to define an unhealthy target. |
665665
| `interval` _[Duration](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#duration-v1-meta)_ | Interval defines the time interval for checking targets, in seconds. |
666666

667667

@@ -1528,7 +1528,7 @@ UpstreamPassiveHealthCheckUnhealthy defines the conditions used to passively det
15281528
| `httpCodes` _integer array_ | HTTPCodes define a list of HTTP status codes that are considered unhealthy. |
15291529
| `httpFailures` _integer_ | HTTPFailures define the number of HTTP failures to define an unhealthy target. |
15301530
| `tcpFailures` _integer_ | TCPFailures define the number of TCP failures to define an unhealthy target. |
1531-
| `timeout` _integer_ | Timeout sets health check timeout in seconds. |
1531+
| `timeout` _integer_ | Timeout sets the number of timeouts to define an unhealthy target. |
15321532

15331533

15341534
_Appears in:_

0 commit comments

Comments
 (0)