Merge pull request #4253 from aledbf/defaults-cfg

Remove kubeclient configuration
This commit is contained in:
Kubernetes Prow Robot 2019-06-29 16:21:29 -07:00 committed by GitHub
commit ac9f250768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,15 +47,6 @@ import (
"k8s.io/ingress-nginx/version" "k8s.io/ingress-nginx/version"
) )
const (
// High enough QPS to fit all expected use cases. QPS=0 is not set here, because
// client code is overriding it.
defaultQPS = 1e6
// High enough Burst to fit all expected use cases. Burst=0 is not set here, because
// client code is overriding it.
defaultBurst = 1e6
)
func main() { func main() {
klog.InitFlags(nil) klog.InitFlags(nil)
@ -189,10 +180,6 @@ func createApiserverClient(apiserverHost, kubeConfig string) (*kubernetes.Client
return nil, err return nil, err
} }
cfg.QPS = defaultQPS
cfg.Burst = defaultBurst
cfg.ContentType = "application/vnd.kubernetes.protobuf"
klog.Infof("Creating API client for %s", cfg.Host) klog.Infof("Creating API client for %s", cfg.Host)
client, err := kubernetes.NewForConfig(cfg) client, err := kubernetes.NewForConfig(cfg)