docs: Fix example control-plane-request-limit HCL and JSON (#19105)

The control-plane-request-limit config entry does not support
specifying parameter names in snake case format.

This commit updates the HCL and JSON examples to use the supported
camel case key format.
This commit is contained in:
Blake Covarrubias 2023-10-17 12:50:12 -07:00 committed by GitHub
parent 61bd08c8b9
commit 9976e08505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 28 deletions

View File

@ -40,48 +40,48 @@ When every field is defined, a control plane request limit configuration entry h
<CodeTabs> <CodeTabs>
```hcl ```hcl
kind = "control-plane-request-limit" Kind = "control-plane-request-limit"
name = "<name-for-the-entry>" Name = "<name-for-the-entry>"
mode = "permissive" Mode = "permissive"
read_rate = 100 ReadRate = 100
write_rate = 100 WriteRate = 100
kv = { KV = {
read_rate = 100 ReadRate = 100
write_rate = 100 WriteRate = 100
} }
acl = { ACL = {
read_rate = 100 ReadRate = 100
write_rate = 100 WriteRate = 100
} }
catalog = { Catalog = {
read_rate = 100 ReadRate = 100
write_rate = 100 WriteRate = 100
} }
``` ```
```json ```json
{ {
"kind": "control-plane-request-limit", "Kind": "control-plane-request-limit",
"name": "<name-for-the-entry>", "Name": "<name-for-the-entry>",
"mode": "permissive", "Mode": "permissive",
"read_rate": 100, "ReadRate": 100,
"write_rate": 100, "WriteRate": 100,
"kv": { "KV": {
"read_rate": 100, "ReadRate": 100,
"write_rate": 100 "WriteRate": 100
}, },
"acl": { "ACL": {
"read_rate": 100, "ReadRate": 100,
"write_rate": 100 "WriteRate": 100
}, },
"catalog": { "Catalog": {
"read_rate": 100, "ReadRate": 100,
"write_rate": 100 "WriteRate": 100
} }
} }
``` ```