code: func NewCRDRESTOptionsGetter(etcdOptions genericoptions.EtcdOptions) genericregistry.RESTOptionsGetter {
  	ret := apiserver.CRDRESTOptionsGetter{
  		StorageConfig:           etcdOptions.StorageConfig,
  		StoragePrefix:           etcdOptions.StorageConfig.Prefix,
  		EnableWatchCache:        etcdOptions.EnableWatchCache,
  		DefaultWatchCacheSize:   etcdOptions.DefaultWatchCacheSize,
  		EnableGarbageCollection: etcdOptions.EnableGarbageCollection,
  		DeleteCollectionWorkers: etcdOptions.DeleteCollectionWorkers,
  		CountMetricPollPeriod:   etcdOptions.StorageConfig.CountMetricPollPeriod,
  	}
  	ret.StorageConfig.Codec = unstructured.UnstructuredJSONScheme
  
  	return ret
  }
docs: // NewCRDRESTOptionsGetter create a RESTOptionsGetter for CustomResources.