Skip to content

Commit 9be50df

Browse files
committed
MINOR: backend: added hash-type option
1 parent accb719 commit 9be50df

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

build/haproxy_spec.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,25 @@ definitions:
563563
x-dependency:
564564
mode:
565565
value: http
566+
hash_type:
567+
properties:
568+
function:
569+
enum:
570+
- sdbm
571+
- djb2
572+
- wt6
573+
- crc32
574+
type: string
575+
method:
576+
enum:
577+
- map-based
578+
- consistent
579+
type: string
580+
modifier:
581+
enum:
582+
- avalanche
583+
type: string
584+
type: object
566585
http-use-htx:
567586
enum:
568587
- enabled

models/haproxy.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,18 @@ backend:
321321
x-nullable: false
322322
balance:
323323
$ref: "#/definitions/balance"
324+
hash_type:
325+
type: object
326+
properties:
327+
method:
328+
type: string
329+
enum: [map-based, consistent]
330+
function:
331+
type: string
332+
enum: [sdbm, djb2, wt6, crc32]
333+
modifier:
334+
type: string
335+
enum: [avalanche]
324336
mode:
325337
type: string
326338
enum: [http, tcp]

0 commit comments

Comments
 (0)