Skip to content

Commit 1fc0b8c

Browse files
committed
MAJOR: Cleanup sections options
1 parent 4143497 commit 1fc0b8c

File tree

3 files changed

+208
-94
lines changed

3 files changed

+208
-94
lines changed

build/haproxy_spec.yaml

Lines changed: 107 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
description: |
66
API for editing and managing haproxy instances. Provides process information, configuration management,
77
haproxy stats and logs.
8-
version: '1.0'
8+
version: '1.1'
99
contact:
1010
name: HAProxy Support
1111
url: https://my.haproxy.com/portal/cust/login
@@ -234,6 +234,17 @@ definitions:
234234
additionalProperties: false
235235
description: HAProxy defaults configuration
236236
properties:
237+
adv_check:
238+
enum:
239+
- ssl-hello-chk
240+
- smtpchk
241+
- ldap-check
242+
- mysql-check
243+
- pgsql-check
244+
- tcp-check
245+
- redis-check
246+
type: string
247+
x-display-name: Advanced Check
237248
balance:
238249
$ref: '#/definitions/balance'
239250
check_timeout:
@@ -254,6 +265,14 @@ definitions:
254265
connect_timeout:
255266
type: integer
256267
x-nullable: true
268+
contstats:
269+
enum:
270+
- enabled
271+
type: string
272+
x-display-name: Continous Statistics
273+
cookie:
274+
pattern: ^[^\s]+$
275+
type: string
257276
default_backend:
258277
pattern: ^[A-Za-z0-9-_.:]+$
259278
type: string
@@ -304,12 +323,32 @@ definitions:
304323
http_keep_alive_timeout:
305324
type: integer
306325
x-nullable: true
326+
http_pretend_keepalive:
327+
enum:
328+
- enabled
329+
- disabled
330+
type: string
307331
http_request_timeout:
308332
type: integer
309333
x-nullable: true
334+
httpchk:
335+
$ref: '#/definitions/httpchk'
310336
httplog:
311337
type: boolean
312338
x-display-name: HTTP Log
339+
log_format:
340+
type: string
341+
log_format_sd:
342+
type: string
343+
x-display-name: Log Format SD
344+
log_separate_errors:
345+
enum:
346+
- enabled
347+
- disabled
348+
type: string
349+
log_tag:
350+
pattern: ^[^\s]+$
351+
type: string
313352
maxconn:
314353
type: integer
315354
x-display-name: Max Connections
@@ -318,14 +357,21 @@ definitions:
318357
enum:
319358
- tcp
320359
- http
321-
- health
322360
type: string
323361
queue_timeout:
324362
type: integer
325363
x-nullable: true
364+
redispatch:
365+
$ref: '#/definitions/redispatch'
366+
retries:
367+
type: integer
368+
x-nullable: true
326369
server_timeout:
327370
type: integer
328371
x-nullable: true
372+
tcplog:
373+
type: boolean
374+
x-display-name: TCP Log
329375
title: Defaults
330376
type: object
331377
frontend:
@@ -359,7 +405,6 @@ definitions:
359405
contstats:
360406
enum:
361407
- enabled
362-
- disabled
363408
type: string
364409
x-display-name: Continous Statistics
365410
default_backend:
@@ -374,6 +419,11 @@ definitions:
374419
- disabled
375420
type: string
376421
x-display-name: Don't Log Null
422+
forwardfor:
423+
$ref: '#/definitions/forwardfor'
424+
x-dependency:
425+
mode:
426+
value: http
377427
http-use-htx:
378428
enum:
379429
- enabled
@@ -385,7 +435,6 @@ definitions:
385435
x-display-name: HTTP Use HTX
386436
http_connection_mode:
387437
enum:
388-
- http-tunnel
389438
- httpclose
390439
- http-server-close
391440
- http-keep-alive
@@ -399,14 +448,6 @@ definitions:
399448
mode:
400449
value: http
401450
x-nullable: true
402-
http_pretend_keepalive:
403-
enum:
404-
- enabled
405-
- disabled
406-
type: string
407-
x-dependency:
408-
mode:
409-
value: http
410451
http_request_timeout:
411452
type: integer
412453
x-dependency:
@@ -440,7 +481,6 @@ definitions:
440481
enum:
441482
- http
442483
- tcp
443-
- health
444484
type: string
445485
name:
446486
pattern: ^[A-Za-z0-9-_.:]+$
@@ -496,12 +536,6 @@ definitions:
496536
connect_timeout:
497537
type: integer
498538
x-nullable: true
499-
contstats:
500-
enum:
501-
- enabled
502-
- disabled
503-
type: string
504-
x-display-name: Continous Statistics
505539
cookie:
506540
pattern: ^[^\s]+$
507541
type: string
@@ -539,44 +573,45 @@ definitions:
539573
value: http
540574
http_connection_mode:
541575
enum:
542-
- http-tunnel
543576
- httpclose
544577
- http-server-close
545578
- http-keep-alive
546579
type: string
547580
x-dependency:
548581
mode:
549582
value: http
583+
http_keep_alive_timeout:
584+
type: integer
585+
x-dependency:
586+
mode:
587+
value: http
588+
x-nullable: true
589+
http_pretend_keepalive:
590+
enum:
591+
- enabled
592+
- disabled
593+
type: string
594+
x-dependency:
595+
mode:
596+
value: http
597+
http_request_timeout:
598+
type: integer
599+
x-dependency:
600+
mode:
601+
value: http
602+
x-nullable: true
550603
httpchk:
551-
properties:
552-
method:
553-
enum:
554-
- HEAD
555-
- PUT
556-
- POST
557-
- GET
558-
- TRACE
559-
- PATCH
560-
type: string
561-
uri:
562-
pattern: ^[^\s]+$
563-
type: string
564-
version:
565-
pattern: ^[^\s]+$
566-
type: string
567-
type: object
604+
$ref: '#/definitions/httpchk'
568605
x-dependency:
569606
mode:
570607
value: http
571-
x-display-name: HTTP Check
572608
log_tag:
573609
pattern: ^[^\s]+$
574610
type: string
575611
mode:
576612
enum:
577613
- http
578614
- tcp
579-
- health
580615
type: string
581616
name:
582617
pattern: ^[A-Za-z0-9-_.:]+$
@@ -586,18 +621,7 @@ definitions:
586621
type: integer
587622
x-nullable: true
588623
redispatch:
589-
properties:
590-
enabled:
591-
enum:
592-
- enabled
593-
- disabled
594-
type: string
595-
interval:
596-
type: integer
597-
x-nullable: false
598-
required:
599-
- enabled
600-
type: object
624+
$ref: '#/definitions/redispatch'
601625
retries:
602626
type: integer
603627
x-nullable: true
@@ -2469,6 +2493,38 @@ definitions:
24692493
type: integer
24702494
x-nullable: true
24712495
type: object
2496+
httpchk:
2497+
properties:
2498+
method:
2499+
enum:
2500+
- HEAD
2501+
- PUT
2502+
- POST
2503+
- GET
2504+
- TRACE
2505+
- PATCH
2506+
type: string
2507+
uri:
2508+
pattern: ^[^\s]+$
2509+
type: string
2510+
version:
2511+
pattern: ^[^\s]+$
2512+
type: string
2513+
type: object
2514+
x-display-name: HTTP Check
2515+
redispatch:
2516+
properties:
2517+
enabled:
2518+
enum:
2519+
- enabled
2520+
- disabled
2521+
type: string
2522+
interval:
2523+
type: integer
2524+
x-nullable: false
2525+
required:
2526+
- enabled
2527+
type: object
24722528
errorfile:
24732529
properties:
24742530
code:

haproxy-spec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
description: |
66
API for editing and managing haproxy instances. Provides process information, configuration management,
77
haproxy stats and logs.
8-
version: '1.0'
8+
version: '1.1'
99
contact:
1010
name: HAProxy Support
1111
url: https://my.haproxy.com/portal/cust/login
@@ -182,6 +182,10 @@ definitions:
182182
$ref: "models/haproxy.yaml#/forwardfor"
183183
default_server:
184184
$ref: "models/haproxy.yaml#/default_server"
185+
httpchk:
186+
$ref: "models/haproxy.yaml#/httpchk"
187+
redispatch:
188+
$ref: "models/haproxy.yaml#/redispatch"
185189
errorfile:
186190
$ref: "models/haproxy.yaml#/errorfile"
187191
responses:

0 commit comments

Comments
 (0)