mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-02 22:33:52 +00:00
RestCfg: Add godocs on how to disable ratelimiting
I frequently find myself in the situation of not remembering which of QPS/Burst I have to set. This change adds a small go doc to clarify that.
This commit is contained in:
@@ -113,6 +113,9 @@ type Config struct {
|
|||||||
|
|
||||||
// QPS indicates the maximum QPS to the master from this client.
|
// QPS indicates the maximum QPS to the master from this client.
|
||||||
// If it's zero, the created RESTClient will use DefaultQPS: 5
|
// If it's zero, the created RESTClient will use DefaultQPS: 5
|
||||||
|
//
|
||||||
|
// Setting this to a negative value will disable client-side ratelimiting
|
||||||
|
// unless `Ratelimiter` is also set.
|
||||||
QPS float32
|
QPS float32
|
||||||
|
|
||||||
// Maximum burst for throttle.
|
// Maximum burst for throttle.
|
||||||
|
|||||||
Reference in New Issue
Block a user