From 4aac6a7c9c931d76c1678fdeea74aabb3a51748d Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Thu, 14 Jul 2022 09:58:55 +0300 Subject: [PATCH] Bump discovery burst of default ConfigFlags to 300 Signed-off-by: Alper Rifat Ulucinar Kubernetes-commit: 45f653e3db6a120d7cafaf2a9262fb3c8a2e22a2 --- discovery/discovery_client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/discovery/discovery_client.go b/discovery/discovery_client.go index a123aa73..ec7ebf05 100644 --- a/discovery/discovery_client.go +++ b/discovery/discovery_client.go @@ -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().