Remove GetResourceClient hack from unified package. (#100636)

* Remove GetResourceClient hack from unified package.
This commit is contained in:
Peter Štibraný
2025-02-14 12:34:52 +01:00
committed by GitHub
parent d092998927
commit 1856d47e47
36 changed files with 119 additions and 126 deletions
+4
View File
@@ -44,6 +44,7 @@ import (
"github.com/grafana/grafana/pkg/services/supportbundles"
"github.com/grafana/grafana/pkg/services/user"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/storage/unified/resource"
"github.com/grafana/grafana/pkg/util"
)
@@ -85,6 +86,7 @@ func ProvideService(
cfg *setting.Cfg,
r prometheus.Registerer,
tracer tracing.Tracer,
resourceClient resource.ResourceClient,
) *Service {
srv := &Service{
log: slog.Default().With("logger", "folder-service"),
@@ -115,6 +117,7 @@ func ProvideService(
apiserver.GetRestConfig,
dashboardStore,
userService,
resourceClient,
)
unifiedStore := ProvideUnifiedStore(k8sHandler, userService)
@@ -131,6 +134,7 @@ func ProvideService(
apiserver.GetRestConfig,
dashboardStore,
userService,
resourceClient,
)
srv.dashboardK8sClient = dashHandler
}