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:
Alper Rifat Ulucinar 2022-07-14 09:58:55 +03:00 committed by Kubernetes Publisher
parent ed7d154cc2
commit 4aac6a7c9c

View File

@ -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().