mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
change default value of QPS and burst to constant
This commit is contained in:
@@ -69,13 +69,6 @@ func NewClient(conf *restclient.Config) (*Client, error) {
|
||||
conf.UserAgent = restclient.DefaultKubernetesUserAgent()
|
||||
}
|
||||
|
||||
if conf.QPS == 0.0 {
|
||||
conf.QPS = 5.0
|
||||
}
|
||||
if conf.Burst == 0 {
|
||||
conf.Burst = 10
|
||||
}
|
||||
|
||||
cl, err := restclient.RESTClientFor(conf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user