Skip to content

Commit f4ba85c

Browse files
committed
[chore] bump qps/burst for lease client
1 parent d2e6289 commit f4ba85c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

functional_tests/internal/concurrency.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ const (
2323
leaseName = "functional-test-lock"
2424
leaseNamespace = "default"
2525

26-
leaseDuration = 15 * time.Second
27-
renewDeadline = 10 * time.Second
26+
leaseDuration = 20 * time.Second
27+
renewDeadline = 15 * time.Second
2828
retryPeriod = 2 * time.Second
2929
)
3030

@@ -34,6 +34,9 @@ const (
3434
func AcquireLeaseForTest(t *testing.T, testKubeConfig string) {
3535
kubeConfig, err := clientcmd.BuildConfigFromFlags("", testKubeConfig)
3636
require.NoError(t, err)
37+
// increase from the default of 5/10 to avoid rate limiting error noticed in K8s 1.35+
38+
kubeConfig.QPS = 15
39+
kubeConfig.Burst = 35
3740
client, err := kubernetes.NewForConfig(kubeConfig)
3841
require.NoError(t, err)
3942

0 commit comments

Comments
 (0)