Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Systest :: Increase the request limit on k8s client #6179

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion systest/testcontext/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ func New(t *testing.T, opts ...Opt) *Context {
config, err := rest.InClusterConfig()

// The default rate limiter is too slow 5qps and 10 burst, This will prevent the client from being throttled
config.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(20, 50)
// Change the limits to the same of kubectl and argo
// That's were those number come from
// https://github.com/kubernetes/kubernetes/pull/105520
// https://github.com/argoproj/argo-workflows/pull/11603/files
config.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(50, 300)
require.NoError(t, err)

clientset, err := kubernetes.NewForConfig(config)
Expand Down
Loading