mirror of https://github.com/hashicorp/consul
Backport of fix: allow snake case keys for ip based rate limit config entry into release/1.16.x (#19292)
* backport of commitpull/19317/head5c2deeb4c6
* backport of commite91fd9c7d7
--------- Co-authored-by: Poonam Jadhav <poonam.jadhav@hashicorp.com>
parent
5b4d0c89a3
commit
10cdb2c5ae
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
server: **(Enterprise Only)** Fixed an issue where snake case keys were rejected when configuring the control-plane-request-limit config entry
|
||||
```
|
|
@ -4,8 +4,8 @@
|
|||
package api
|
||||
|
||||
type ReadWriteRatesConfig struct {
|
||||
ReadRate float64
|
||||
WriteRate float64
|
||||
ReadRate float64 `alias:"read_rate"`
|
||||
WriteRate float64 `alias:"write_rate"`
|
||||
}
|
||||
|
||||
type RateLimitIPConfigEntry struct {
|
||||
|
@ -16,8 +16,8 @@ type RateLimitIPConfigEntry struct {
|
|||
|
||||
Meta map[string]string `json:",omitempty"`
|
||||
// overall limits
|
||||
ReadRate float64
|
||||
WriteRate float64
|
||||
ReadRate float64 `alias:"read_rate"`
|
||||
WriteRate float64 `alias:"write_rate"`
|
||||
|
||||
//limits specific to a type of call
|
||||
ACL *ReadWriteRatesConfig `json:",omitempty"` // OperationCategoryACL OperationCategory = "ACL"
|
||||
|
|
Loading…
Reference in New Issue