From 2ebb6eaa72e10eedc659547ce40e6ba770fd337d Mon Sep 17 00:00:00 2001 From: Jon Huhn Date: Tue, 28 Mar 2023 13:38:36 -0500 Subject: [PATCH] :seedling: increase clusterctl client throttle burst --- cmd/clusterctl/client/cluster/proxy.go | 2 +- cmd/clusterctl/client/cluster/proxy_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/clusterctl/client/cluster/proxy.go b/cmd/clusterctl/client/cluster/proxy.go index 5c114beac458..88e1e13c2d7f 100644 --- a/cmd/clusterctl/client/cluster/proxy.go +++ b/cmd/clusterctl/client/cluster/proxy.go @@ -150,7 +150,7 @@ func (k *proxy) GetConfig() (*rest.Config, error) { // Set QPS and Burst to a threshold that ensures the controller runtime client/client go doesn't generate throttling log messages restConfig.QPS = 20 - restConfig.Burst = 100 + restConfig.Burst = 300 return restConfig, nil } diff --git a/cmd/clusterctl/client/cluster/proxy_test.go b/cmd/clusterctl/client/cluster/proxy_test.go index dfa55f029512..65239d7c3ec8 100644 --- a/cmd/clusterctl/client/cluster/proxy_test.go +++ b/cmd/clusterctl/client/cluster/proxy_test.go @@ -82,7 +82,7 @@ func TestProxyGetConfig(t *testing.T) { g.Expect(conf.Host).To(Equal(tt.expectedHost)) g.Expect(conf.UserAgent).To(Equal(fmt.Sprintf("clusterctl/%s (%s)", version.Get().GitVersion, version.Get().Platform))) g.Expect(conf.QPS).To(BeEquivalentTo(20)) - g.Expect(conf.Burst).To(BeEquivalentTo(100)) + g.Expect(conf.Burst).To(BeEquivalentTo(300)) g.Expect(conf.Timeout.String()).To(Equal("30s")) }) }