Datasources: Add wireset for datasource.DataSourceAPIBuilder (#80914)

tidy up
This commit is contained in:
Will Browne
2024-01-22 15:21:27 +01:00
committed by GitHub
parent f3c64a7337
commit 2a0f1900d5
4 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ import (
"k8s.io/client-go/tools/clientcmd"
netutils "k8s.io/utils/net"
"github.com/grafana/grafana/pkg/registry/apis/datasource"
"github.com/grafana/grafana/pkg/registry/apis/example"
"github.com/grafana/grafana/pkg/registry/apis/featuretoggle"
"github.com/grafana/grafana/pkg/server"
"github.com/grafana/grafana/pkg/services/featuremgmt"
grafanaAPIServer "github.com/grafana/grafana/pkg/services/grafana-apiserver"
"github.com/grafana/grafana/pkg/services/grafana-apiserver/utils"
@@ -58,7 +58,7 @@ func (o *APIServerOptions) loadAPIGroupBuilders(args []string) error {
}
o.builders = append(o.builders, featuretoggle.NewFeatureFlagAPIBuilder(features))
case "testdata.datasource.grafana.app":
ds, err := datasource.NewStandaloneDatasource(g)
ds, err := server.InitializeDataSourceAPIServer(g)
if err != nil {
return err
}