Skip to content

Commit

Permalink
Merge pull request #144 from reactiveops/ks/adjust-os-exit
Browse files Browse the repository at this point in the history
adjust os exit
  • Loading branch information
kimschles authored Jun 11, 2019
2 parents 6fa27ee + b32a7af commit e030b61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/kube/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.GetConfigOrDie()
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)
Expand Down

0 comments on commit e030b61

Please sign in to comment.