Merge pull request #127710 from alvaroaleman/document

RestCfg: Add godocs on how to disable ratelimiting
This commit is contained in:
Kubernetes Prow Robot 2024-10-08 10:20:33 +01:00 committed by GitHub
commit b2031b3cb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.