code: func GetKubeConfig(configPath string) (*rest.Config, error) {
  	// if path to kubeconfig was provided, init config from it
  	if configPath != "" {
  		return clientcmd.BuildConfigFromFlags("", configPath)
  	}
  	return rest.InClusterConfig()
  }
docs: // GetKubeConfig returns kubernetes configuration
  // from configPath file or, by default reads in-cluster configuration