Skip to content

Commit 2025990

Browse files
committed
Add a function to disable client side rate limiting
Fixes #5
1 parent 304153d commit 2025990

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

client/rest.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package client
2+
3+
import "k8s.io/client-go/rest"
4+
5+
func DisableClientSideRateLimiting(restConfig *rest.Config) {
6+
restConfig.Burst = 2000
7+
restConfig.QPS = -1
8+
}

0 commit comments

Comments
 (0)