code: func New(getter genericclioptions.RESTClientGetter) *Client {
  	if getter == nil {
  		getter = genericclioptions.NewConfigFlags(true)
  	}
  
  	err := apiextv1beta1.AddToScheme(scheme.Scheme)
  	if err != nil {
  		panic(err)
  	}
  
  	return &Client{
  		Factory: cmdutil.NewFactory(getter),
  		Log:     nopLogger,
  	}
  }
docs: // New creates a new Client.