-
Notifications
You must be signed in to change notification settings - Fork 75
/
zz_operationalinsights_setup.go
executable file
·42 lines (37 loc) · 1.98 KB
/
zz_operationalinsights_setup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Copyright 2021 Upbound Inc.
*/
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/upbound/upjet/pkg/controller"
loganalyticsdataexportrule "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticsdataexportrule"
loganalyticsdatasourcewindowsevent "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticsdatasourcewindowsevent"
loganalyticsdatasourcewindowsperformancecounter "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticsdatasourcewindowsperformancecounter"
loganalyticslinkedservice "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticslinkedservice"
loganalyticslinkedstorageaccount "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticslinkedstorageaccount"
loganalyticsquerypack "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticsquerypack"
loganalyticsquerypackquery "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticsquerypackquery"
loganalyticssavedsearch "github.com/upbound/provider-azure/internal/controller/operationalinsights/loganalyticssavedsearch"
workspace "github.com/upbound/provider-azure/internal/controller/operationalinsights/workspace"
)
// Setup_operationalinsights creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_operationalinsights(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
loganalyticsdataexportrule.Setup,
loganalyticsdatasourcewindowsevent.Setup,
loganalyticsdatasourcewindowsperformancecounter.Setup,
loganalyticslinkedservice.Setup,
loganalyticslinkedstorageaccount.Setup,
loganalyticsquerypack.Setup,
loganalyticsquerypackquery.Setup,
loganalyticssavedsearch.Setup,
workspace.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}