K8s: Add example api service (#75911)

This commit is contained in:
Ryan McKinley
2023-10-06 11:55:22 -07:00
committed by GitHub
parent 0a50ca7231
commit 717a9dd616
19 changed files with 702 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ package apiregistry
import (
"context"
examplev0alpha1 "github.com/grafana/grafana/pkg/apis/example/v0alpha1"
playlistsv0alpha1 "github.com/grafana/grafana/pkg/apis/playlist/v0alpha1"
"github.com/grafana/grafana/pkg/registry"
)
@@ -13,8 +14,11 @@ var (
type Service struct{}
// ProvideService is an entry point for each service that will force initialization
// and give each builder the chance to register itself with the main server
func ProvideService(
_ *playlistsv0alpha1.PlaylistAPIBuilder,
_ *examplev0alpha1.TestingAPIBuilder,
) *Service {
return &Service{}
}