Remove kubeclient configuration

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-06-29 16:12:59 -04:00
parent 2586542608
commit 3e86064e04
No known key found for this signature in database
GPG key ID: 786136016A8BA02A

View file

@ -47,15 +47,6 @@ import (
"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() {
klog.InitFlags(nil)
@ -189,10 +180,6 @@ func createApiserverClient(apiserverHost, kubeConfig string) (*kubernetes.Client
return nil, err
}
cfg.QPS = defaultQPS
cfg.Burst = defaultBurst
cfg.ContentType = "application/vnd.kubernetes.protobuf"
klog.Infof("Creating API client for %s", cfg.Host)
client, err := kubernetes.NewForConfig(cfg)