Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 24ce551

Browse files
committed
Add rateLimit policy support
1 parent b75b56b commit 24ce551

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

build/kic_crds/policy-definition.yaml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ spec:
3535
metadata:
3636
type: object
3737
spec:
38-
description: 'PolicySpec is the spec of the Policy resource. The spec includes
39-
multiple fields, where each field represents a different policy. Note:
40-
currently we have only one policy -- AccessControl, but we will support
41-
more in the future. Only one policy (field) is allowed.'
38+
description: PolicySpec is the spec of the Policy resource. The spec includes
39+
multiple fields, where each field represents a different policy. Only
40+
one policy (field) is allowed.
4241
type: object
4342
properties:
4443
accessControl:
@@ -53,4 +52,26 @@ spec:
5352
deny:
5453
type: array
5554
items:
56-
type: string
55+
type: string
56+
rateLimit:
57+
description: RateLimit defines a rate limit policy.
58+
type: object
59+
properties:
60+
burst:
61+
type: integer
62+
delay:
63+
type: integer
64+
dryRun:
65+
type: boolean
66+
key:
67+
type: string
68+
logLevel:
69+
type: string
70+
noDelay:
71+
type: boolean
72+
rate:
73+
type: string
74+
rejectCode:
75+
type: integer
76+
zoneSize:
77+
type: string

0 commit comments

Comments
 (0)