code: func NewClientManager(gv schema.GroupVersion, addToSchemaFunc func(s *runtime.Scheme) error) (ClientManager, error) {
  	cache, err := lru.New(defaultCacheSize)
  	if err != nil {
  		return ClientManager{}, err
  	}
  	hookScheme := runtime.NewScheme()
  	if err := addToSchemaFunc(hookScheme); err != nil {
  		return ClientManager{}, err
  	}
  	return ClientManager{
  		cache: cache,
  		negotiatedSerializer: serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{
  			Serializer: serializer.NewCodecFactory(hookScheme).LegacyCodec(gv),
  		}),
  	}, nil
  }
docs: // NewClientManager creates a clientManager.