internal/handlers: add host catalog pagination

This commit is contained in:
Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:21 -08:00
1 parent c0c28c63bc
commit f38c79a5ce
8 files changed
+1011 -329

No files matched your search

+9 -1
View File
@@ -136,7 +136,15 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
currentServices := s.GetServiceInfo()
if _, ok := currentServices[services.HostCatalogService_ServiceDesc.ServiceName]; !ok {
hcs, err := host_catalogs.NewService(c.baseContext, c.StaticHostRepoFn, c.PluginHostRepoFn, c.PluginRepoFn, c.IamRepoFn)
hcs, err := host_catalogs.NewService(
c.baseContext,
c.StaticHostRepoFn,
c.PluginHostRepoFn,
c.PluginRepoFn,
c.IamRepoFn,
c.HostCatalogRepoFn,
c.conf.RawConfig.Controller.MaxPageSize,
)
if err != nil {
return fmt.Errorf("failed to create host catalog handler service: %w", err)
}