From b5be08f1d7f0b43976c6d21ee6a00bd939e328ba Mon Sep 17 00:00:00 2001 From: Bryce Tsuyuki Date: Tue, 13 Aug 2024 14:09:32 -0700 Subject: [PATCH] Add comments about the meaning of a negative QPS and Burst --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 862e891a..7ed595fd 100644 --- a/main.go +++ b/main.go @@ -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