code: func NewClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error) {
  	scheme := runtime.NewScheme()
  	if err := crdv1.AddToScheme(scheme); err != nil {
  		return nil, nil, err
  	}
  
  	config := *cfg
  	config.GroupVersion = &crdv1.SchemeGroupVersion
  	config.APIPath = "/apis"
  	config.ContentType = runtime.ContentTypeJSON
  	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: serializer.NewCodecFactory(scheme)}
  
  	client, err := rest.RESTClientFor(&config)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	return client, scheme, nil
  }
docs: // NewClient creates a new RESTClient