Merge pull request #127710 from alvaroaleman/document

RestCfg: Add godocs on how to disable ratelimiting

Kubernetes-commit: b2031b3cb46e946ee72eab7bda87b046db138d62
This commit is contained in:
Kubernetes Publisher 2024-10-08 10:20:33 +01:00
commit 0dfea60d7a

View File

@ -113,6 +113,9 @@ type Config struct {
// QPS indicates the maximum QPS to the master from this client.
// 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
// Maximum burst for throttle.