code: func configForContext(context string, kubeconfig string) (*rest.Config, error) {
  	config, err := kube.GetConfig(context, kubeconfig).ClientConfig()
  	if err != nil {
  		return nil, fmt.Errorf("could not get Kubernetes config for context %q: %s", context, err)
  	}
  	return config, nil
  }
docs: // configForContext creates a Kubernetes REST client configuration for a given kubeconfig context.