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

Add support for policies in VS routes and VSR subroutes. Add RateLimit policy support #18

Merged
merged 2 commits into from
Sep 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 26 additions & 5 deletions build/kic_crds/policy-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ spec:
metadata:
type: object
spec:
description: 'PolicySpec is the spec of the Policy resource. The spec includes
multiple fields, where each field represents a different policy. Note:
currently we have only one policy -- AccessControl, but we will support
more in the future. Only one policy (field) is allowed.'
description: PolicySpec is the spec of the Policy resource. The spec includes
multiple fields, where each field represents a different policy. Only
one policy (field) is allowed.
type: object
properties:
accessControl:
Expand All @@ -53,4 +52,26 @@ spec:
deny:
type: array
items:
type: string
type: string
rateLimit:
description: RateLimit defines a rate limit policy.
type: object
properties:
burst:
type: integer
delay:
type: integer
dryRun:
type: boolean
key:
type: string
logLevel:
type: string
noDelay:
type: boolean
rate:
type: string
rejectCode:
type: integer
zoneSize:
type: string
11 changes: 11 additions & 0 deletions build/kic_crds/vs-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,17 @@ spec:
type: integer
path:
type: string
policies:
type: array
items:
description: PolicyReference references a policy by name and
an optional namespace.
type: object
properties:
name:
type: string
namespace:
type: string
route:
type: string
splits:
Expand Down
11 changes: 11 additions & 0 deletions build/kic_crds/vsr-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,17 @@ spec:
type: integer
path:
type: string
policies:
type: array
items:
description: PolicyReference references a policy by name and
an optional namespace.
type: object
properties:
name:
type: string
namespace:
type: string
route:
type: string
splits:
Expand Down