...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package collector
17
18 import (
19 "github.com/go-logr/logr"
20 "k8s.io/apimachinery/pkg/runtime"
21 "sigs.k8s.io/controller-runtime/pkg/client"
22
23 config "github.com/chaos-mesh/chaos-mesh/pkg/config"
24 "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/core"
25 )
26
27 func Bootstrap(
28 conf *config.ChaosDashboardConfig,
29 experimentArchive core.ExperimentStore,
30 scheduleArchive core.ScheduleStore,
31 event core.EventStore,
32 workflowStore core.WorkflowStore,
33 logger logr.Logger,
34 ) (*Server, client.Client, client.Reader, *runtime.Scheme) {
35 return NewServer(conf, experimentArchive, scheduleArchive, event, workflowStore, logger.WithName("collector"))
36 }
37