Skip to content

Commit

Permalink
Add comments about the meaning of a negative QPS and Burst
Browse files Browse the repository at this point in the history
  • Loading branch information
hexalellogram committed Aug 13, 2024
1 parent 5530449 commit b5be08f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ func main() {

config = ctrl.GetConfigOrDie()
if disableClientSideRateLimiting {
// A negative QPS and Burst indicates that the client should not have a rate limiter.
// Ref: https://github.com/kubernetes/kubernetes/blob/v1.24.0/staging/src/k8s.io/client-go/rest/config.go#L354-L364
setuplog.Info("Disabling Kubernetes client rate limiter.")
config.QPS = -1
config.Burst = -1
Expand Down

0 comments on commit b5be08f

Please sign in to comment.