Skip to content

Commit 79f1c2d

Browse files
yuzhichangmjuraga
authored andcommitted
MINOR: backend: add new parameters
Add external-check to global, default, and backend options.
1 parent 58102c1 commit 79f1c2d

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

build/haproxy_spec.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ definitions:
170170
- enabled
171171
- disabled
172172
type: string
173+
external_check:
174+
type: boolean
175+
x-display-name: External Check
173176
master-worker:
174177
type: boolean
175178
x-display-name: Master Worker Mode
@@ -270,6 +273,17 @@ definitions:
270273
$ref: '#/definitions/errorfile'
271274
type: array
272275
x-go-name: ErrorFiles
276+
external_check:
277+
type: boolean
278+
x-display-name: External Check
279+
external_check_command:
280+
pattern: ^[^\s]+$
281+
type: string
282+
x-display-name: External Check Command
283+
external_check_path:
284+
pattern: ^[^\s]+$
285+
type: string
286+
x-display-name: External Check Path
273287
forwardfor:
274288
$ref: '#/definitions/forwardfor'
275289
http-use-htx:
@@ -493,6 +507,17 @@ definitions:
493507
value: http
494508
default_server:
495509
$ref: '#/definitions/default_server'
510+
external_check:
511+
type: boolean
512+
x-display-name: External Check
513+
external_check_command:
514+
pattern: ^[^\s]+$
515+
type: string
516+
x-display-name: External Check Command
517+
external_check_path:
518+
pattern: ^[^\s]+$
519+
type: string
520+
x-display-name: External Check Path
496521
forwardfor:
497522
$ref: '#/definitions/forwardfor'
498523
x-dependency:

models/haproxy.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ global:
1515
master-worker:
1616
type: boolean
1717
x-display-name: Master Worker Mode
18+
external_check:
19+
type: boolean
20+
x-display-name: External Check
1821
pidfile:
1922
type: string
2023
x-display-name: PID File
@@ -134,6 +137,17 @@ defaults:
134137
queue_timeout:
135138
type: integer
136139
x-nullable: true
140+
external_check:
141+
type: boolean
142+
x-display-name: External Check
143+
external_check_path:
144+
type: string
145+
pattern: '^[^\s]+$'
146+
x-display-name: External Check Path
147+
external_check_command:
148+
type: string
149+
pattern: '^[^\s]+$'
150+
x-display-name: External Check Command
137151
default_backend:
138152
type: string
139153
pattern: '^[A-Za-z0-9-_.:]+$'
@@ -318,6 +332,17 @@ backend:
318332
version:
319333
type: string
320334
pattern: '^[^\s]+$'
335+
external_check:
336+
type: boolean
337+
x-display-name: External Check
338+
external_check_path:
339+
type: string
340+
pattern: '^[^\s]+$'
341+
x-display-name: External Check Path
342+
external_check_command:
343+
type: string
344+
pattern: '^[^\s]+$'
345+
x-display-name: External Check Command
321346
queue_timeout:
322347
type: integer
323348
x-nullable: true
@@ -1283,7 +1308,7 @@ forwardfor:
12831308
type: string
12841309
pattern: '^[^\s]+$'
12851310
ifnone:
1286-
type: boolean
1311+
type: boolean
12871312
balance:
12881313
type: object
12891314
properties:

0 commit comments

Comments
 (0)