From b32a7afa774d0be89c4427033c78a2b925ed4243 Mon Sep 17 00:00:00 2001 From: kimschles Date: Tue, 11 Jun 2019 13:46:12 -0600 Subject: [PATCH] update tests --- pkg/kube/resources.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/kube/resources.go b/pkg/kube/resources.go index f84e2c267..bfd27bbaf 100644 --- a/pkg/kube/resources.go +++ b/pkg/kube/resources.go @@ -126,7 +126,11 @@ func CreateResourceProviderFromPath(directory string) (*ResourceProvider, error) // CreateResourceProviderFromCluster creates a new ResourceProvider using live data from a cluster func CreateResourceProviderFromCluster() (*ResourceProvider, error) { - kubeConf := config.GetConfig() + kubeConf, configError := config.GetConfig() + if configError != nil { + logrus.Errorf("Error fetching KubeConfig %v", configError) + return nil, configError + } api, err := kubernetes.NewForConfig(kubeConf) if err != nil { logrus.Errorf("Error creating Kubernetes client %v", err)