code: func NewDiscoveryScaleKindResolver(client discovery.ServerResourcesInterface) ScaleKindResolver {
  	base := &discoveryScaleResolver{
  		discoveryClient: client,
  	}
  
  	return &cachedScaleKindResolver{
  		base:  base,
  		cache: make(map[schema.GroupVersionResource]schema.GroupVersionKind),
  	}
  }
docs: // NewDiscoveryScaleKindResolver creates a new ScaleKindResolver which uses information from the given
  // disovery client to resolve the correct Scale GroupVersionKind for different resources.