code: func getKubeClient(context string, kubeconfig string) (*rest.Config, kubernetes.Interface, error) {
  	config, err := configForContext(context, kubeconfig)
  	if err != nil {
  		return nil, nil, err
  	}
  	client, err := kubernetes.NewForConfig(config)
  	if err != nil {
  		return nil, nil, fmt.Errorf("could not get Kubernetes client: %s", err)
  	}
  	return config, client, nil
  }
docs: // getKubeClient creates a Kubernetes config and client for a given kubeconfig context.