Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update controller manifests #12

Merged
merged 1 commit into from
Mar 4, 2022
Merged
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
131 changes: 125 additions & 6 deletions bundle/manifests/apim.kuadrant.io_ratelimitpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,17 @@ spec:
properties:
actions:
items:
description: Action_Specifier defines the envoy rate limit
actions
description: Action_Specifier defines one envoy rate limit
action
oneOf:
- required:
- generic_key
- required:
- metadata
- required:
- remote_address
- required:
- request_headers
properties:
generic_key:
properties:
Expand All @@ -78,9 +87,59 @@ spec:
descriptor_value:
type: string
required:
- descriptor_key
- descriptor_value
type: object
metadata:
properties:
default_value:
type: string
descriptor_key:
type: string
metadata_key:
properties:
key:
type: string
path:
items:
properties:
key:
type: string
required:
- key
type: object
type: array
required:
- key
- path
type: object
source:
description: MetadataSource https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-enum-config-route-v3-ratelimit-action-metadata-source
enum:
- DYNAMIC
- ROUTE_ENTRY
type: string
required:
- descriptor_key
- metadata_key
type: object
remote_address:
description: RemoteAddressSpec no need to specify descriptor
entry is populated using the trusted address from [x-forwarded-for](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#config-http-conn-man-headers-x-forwarded-for)
type: object
request_headers:
description: RequestHeadersSpec Rate limit on request
headers.
properties:
descriptor_key:
type: string
header_name:
type: string
skip_if_absent:
type: boolean
required:
- descriptor_key
- header_name
type: object
type: object
type: array
stage:
Expand All @@ -107,8 +166,17 @@ spec:
properties:
actions:
items:
description: Action_Specifier defines the envoy rate
limit actions
description: Action_Specifier defines one envoy rate
limit action
oneOf:
- required:
- generic_key
- required:
- metadata
- required:
- remote_address
- required:
- request_headers
properties:
generic_key:
properties:
Expand All @@ -117,9 +185,60 @@ spec:
descriptor_value:
type: string
required:
- descriptor_key
- descriptor_value
type: object
metadata:
properties:
default_value:
type: string
descriptor_key:
type: string
metadata_key:
properties:
key:
type: string
path:
items:
properties:
key:
type: string
required:
- key
type: object
type: array
required:
- key
- path
type: object
source:
description: MetadataSource https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-enum-config-route-v3-ratelimit-action-metadata-source
enum:
- DYNAMIC
- ROUTE_ENTRY
type: string
required:
- descriptor_key
- metadata_key
type: object
remote_address:
description: RemoteAddressSpec no need to specify
descriptor entry is populated using the trusted
address from [x-forwarded-for](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#config-http-conn-man-headers-x-forwarded-for)
type: object
request_headers:
description: RequestHeadersSpec Rate limit on request
headers.
properties:
descriptor_key:
type: string
header_name:
type: string
skip_if_absent:
type: boolean
required:
- descriptor_key
- header_name
type: object
type: object
type: array
stage:
Expand Down