Remove kubeclient configuration
This commit is contained in:
parent
2586542608
commit
3e86064e04
1 changed files with 0 additions and 13 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue