mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-24 14:12:18 +00:00
Bump discovery burst of default ConfigFlags to 300
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com> Kubernetes-commit: 45f653e3db6a120d7cafaf2a9262fb3c8a2e22a2
This commit is contained in:
parent
ed7d154cc2
commit
4aac6a7c9c
@ -459,9 +459,8 @@ func setDiscoveryDefaults(config *restclient.Config) error {
|
||||
if config.Timeout == 0 {
|
||||
config.Timeout = defaultTimeout
|
||||
}
|
||||
// if a burst limit is not already configured and
|
||||
// an avg. rate of `defaultBurst` qps is not already configured
|
||||
if config.Burst == 0 && config.QPS < defaultBurst {
|
||||
// if a burst limit is not already configured
|
||||
if config.Burst == 0 {
|
||||
// discovery is expected to be bursty, increase the default burst
|
||||
// to accommodate looking up resource info for many API groups.
|
||||
// matches burst set by ConfigFlags#ToDiscoveryClient().
|
||||
|
Loading…
Reference in New Issue
Block a user