Skip to content

Commit

Permalink
docs: address comments with new defaults field
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Apr 10, 2024
1 parent 9ea64ce commit 554edbc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/reference/ratelimitpolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- [RateLimitPolicy](#ratelimitpolicy)
- [RateLimitPolicySpec](#ratelimitpolicyspec)
- [Defaults](#defaults)
- [RateLimitPolicyCommonSpec](#rateLimitPolicyCommonSpec)
- [Limit](#limit)
- [RateLimit](#ratelimit)
- [WhenCondition](#whencondition)
Expand All @@ -18,13 +18,13 @@

## RateLimitPolicySpec

| **Field** | **Type** | **Required** | **Description** |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------|--------------|--------------------------------------------------------------------------------------------------------|
| `targetRef` | [PolicyTargetReference](https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io/v1alpha2.PolicyTargetReference) | Yes | Reference to a Kubernetes resource that the policy attaches to |
| `defaults` | Map<String: [Limit](#limit)> | No | Explicit Limit definitions. This field is mutually exclusive with [Defaults](#defaults) `limits` field |
| `limits` | [Defaults](#defaults) | No | Implicit default definitions |
| **Field** | **Type** | **Required** | **Description** |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------|--------------|-------------------------------------------------------------------------------------------------------------|
| `targetRef` | [PolicyTargetReference](https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io/v1alpha2.PolicyTargetReference) | Yes | Reference to a Kubernetes resource that the policy attaches to |
| `defaults` | [RateLimitPolicyCommonSpec](#rateLimitPolicyCommonSpec) | No | Default limit definitions. This field is mutually exclusive with the `limits` field |
| `limits` | Map<String: [Limit](#limit)> | No | Limit definitions. This field is mutually exclusive with the [`defaults`](#rateLimitPolicyCommonSpec) field |

### Defaults
### RateLimitPolicyCommonSpec

| **Field** | **Type** | **Required** | **Description** |
|-----------|------------------------------|--------------|------------------------------------------------------------------------------------------------------------------------------|
Expand Down

0 comments on commit 554edbc

Please sign in to comment.