Skip to content

Commit

Permalink
Add a function to disable client side rate limiting
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
ecordell committed Aug 29, 2022
1 parent 304153d commit 2025990
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/rest.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package client

import "k8s.io/client-go/rest"

func DisableClientSideRateLimiting(restConfig *rest.Config) {
restConfig.Burst = 2000
restConfig.QPS = -1
}

0 comments on commit 2025990

Please sign in to comment.