code: func SetupClient() *kubernetes.Clientset {
  	var config *rest.Config
  	var err error
  
  	kubeconfigFile := os.Getenv(KubeConfigEnv)
  	if kubeconfigFile != "" {
  		config, err = BuildConfigFromFlags("", kubeconfigFile)
  		if err != nil {
  			glog.Fatalf("Error creating config from %s specified file: %s %v\n", KubeConfigEnv,
  				kubeconfigFile, err)
  		}
  		glog.Infof("Creating client using kubeconfig file %s", kubeconfigFile)
  	} else {
  		config, err = InClusterConfig()
  		if err != nil {
  			glog.Fatalf("Error creating InCluster config: %v\n", err)
  		}
  		glog.Infof("Creating client using in-cluster config")
  	}
  
  	clientset, err := kubernetes.NewForConfig(config)
  	if err != nil {
  		glog.Fatalf("Error creating clientset: %v\n", err)
  	}
  	return clientset
  }
docs: // SetupClient created client using either in-cluster configuration or if KUBECONFIG environment variable is specified then using that config.