code: func ToClientSet(config *clientcmdapi.Config) (*clientset.Clientset, error) {
  	clientConfig, err := clientcmd.NewDefaultClientConfig(*config, &clientcmd.ConfigOverrides{}).ClientConfig()
  	if err != nil {
  		return nil, errors.Wrap(err, "failed to create API client configuration from kubeconfig")
  	}
  
  	client, err := clientset.NewForConfig(clientConfig)
  	if err != nil {
  		return nil, errors.Wrap(err, "failed to create API client")
  	}
  	return client, nil
  }
docs: // ToClientSet converts a KubeConfig object to a client