Skip to content

Commit

Permalink
Merge pull request #179 from ytsarev/burst
Browse files Browse the repository at this point in the history
Configure higher burst limit to avoid client side throttling
  • Loading branch information
turkenh authored Feb 27, 2023
2 parents b1f3bfc + 57aca38 commit da62043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/clients/helm/restclientgetter.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ func (c *restClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterfa
// The more groups you have, the more discovery requests you need to make.
// given 25 groups (our groups + a few custom conf) with one-ish version each, discovery needs to make 50 requests
// double it just so we don't end up here again for a while. This config is only used for discovery.
config.Burst = 100
// Align value with https://github.com/kubernetes/kubernetes/pull/109141
config.Burst = 300

discoveryClient, _ := discovery.NewDiscoveryClientForConfig(config)
return memory.NewMemCacheClient(discoveryClient), nil
Expand Down

0 comments on commit da62043

Please sign in to comment.