Skip to content

Commit

Permalink
Merge pull request #242 from fluxcd/increase-qps-burst
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco authored Feb 21, 2022
2 parents 3c08fca + 8f157dc commit 230d9ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ const (
// restConfig := client.GetConfigOrDie(clientOptions)
// }
type Options struct {
// QPS indicates the maximum queries-per-second of requests sent to to the Kubernetes API, defaults to 20.
// 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 50.
// Burst indicates the maximum burst queries-per-second of requests sent to the Kubernetes API, defaults to 100.
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, 20.0,
fs.Float32Var(&o.QPS, flagQPS, 50.0,
"The maximum queries-per-second of requests sent to the Kubernetes API.")
fs.IntVar(&o.Burst, flagBurst, 50,
fs.IntVar(&o.Burst, flagBurst, 100,
"The maximum burst queries-per-second of requests sent to the Kubernetes API.")
}

Expand Down

0 comments on commit 230d9ec

Please sign in to comment.