code: func NewFactory(namespace string, config *restclient.Config, clientSet *kubeclient.Clientset, experimental bool) (*Factory, error) {
  	coreClientSet, err := corev1.NewForConfig(config)
  	if err != nil {
  		return nil, err
  	}
  
  	appsClientSet, err := appsv1beta2.NewForConfig(config)
  	if err != nil {
  		return nil, err
  	}
  
  	return &Factory{
  		namespace:     namespace,
  		config:        config,
  		coreClientSet: coreClientSet,
  		appsClientSet: appsClientSet,
  		clientSet:     clientSet,
  		experimental:  experimental,
  	}, nil
  }
docs: // NewFactory creates a kubernetes client factory