Update loader.go

This commit is contained in:
up9-github 2021-04-25 14:37:24 +03:00
parent 4a8f2c156d
commit 8caea29012

View File

@ -13,12 +13,10 @@ import (
)
func NewFromInCluster(errOut chan error) (*Resolver, error) {
// creates the in-cluster config
config, err := restclient.InClusterConfig()
if err != nil {
return nil, err
}
// creates the clientset
clientset, err := kubernetes.NewForConfig(config)
if err != nil {
return nil, err