Skip to content

Commit

Permalink
Increase default burst to 300 to conform client-go
Browse files Browse the repository at this point in the history
See: kubernetes/kubernetes#109141

Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
  • Loading branch information
uvegla committed Feb 14, 2023
1 parent db1f3af commit 4d5a7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ type Options struct {
// QPS indicates the maximum queries-per-second of requests sent to the Kubernetes API, defaults to 50.
QPS float32

// Burst indicates the maximum burst queries-per-second of requests sent to the Kubernetes API, defaults to 100.
// Burst indicates the maximum burst queries-per-second of requests sent to the Kubernetes API, defaults to 300.
Burst int
}

// BindFlags will parse the given pflag.FlagSet for Kubernetes client option flags and set the Options accordingly.
func (o *Options) BindFlags(fs *pflag.FlagSet) {
fs.Float32Var(&o.QPS, flagQPS, 50.0,
"The maximum queries-per-second of requests sent to the Kubernetes API.")
fs.IntVar(&o.Burst, flagBurst, 100,
fs.IntVar(&o.Burst, flagBurst, 300,
"The maximum burst queries-per-second of requests sent to the Kubernetes API.")
}

Expand Down

0 comments on commit 4d5a7eb

Please sign in to comment.