switch logging to logrus and errors to pkg/errors

Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
Steve Kriss
2017-09-14 14:27:31 -07:00
parent 791a06d6d4
commit 914165095a
55 changed files with 713 additions and 543 deletions

View File

@@ -20,6 +20,8 @@ import (
"fmt"
"runtime"
"github.com/pkg/errors"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
@@ -33,7 +35,7 @@ func Config(kubeconfig, baseName string) (*rest.Config, error) {
loader.ExplicitPath = kubeconfig
clientConfig, err := clientcmd.BuildConfigFromKubeconfigGetter("", loader.Load)
if err != nil {
return nil, err
return nil, errors.WithStack(err)
}
clientConfig.UserAgent = buildUserAgent(