-
Notifications
You must be signed in to change notification settings - Fork 75
/
zz_insights_setup.go
executable file
·66 lines (61 loc) · 3.85 KB
/
zz_insights_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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/crossplane/upjet/pkg/controller"
applicationinsights "github.com/upbound/provider-azure/internal/controller/insights/applicationinsights"
applicationinsightsanalyticsitem "github.com/upbound/provider-azure/internal/controller/insights/applicationinsightsanalyticsitem"
applicationinsightsapikey "github.com/upbound/provider-azure/internal/controller/insights/applicationinsightsapikey"
applicationinsightssmartdetectionrule "github.com/upbound/provider-azure/internal/controller/insights/applicationinsightssmartdetectionrule"
applicationinsightsstandardwebtest "github.com/upbound/provider-azure/internal/controller/insights/applicationinsightsstandardwebtest"
applicationinsightswebtest "github.com/upbound/provider-azure/internal/controller/insights/applicationinsightswebtest"
applicationinsightsworkbook "github.com/upbound/provider-azure/internal/controller/insights/applicationinsightsworkbook"
applicationinsightsworkbooktemplate "github.com/upbound/provider-azure/internal/controller/insights/applicationinsightsworkbooktemplate"
monitoractiongroup "github.com/upbound/provider-azure/internal/controller/insights/monitoractiongroup"
monitoractivitylogalert "github.com/upbound/provider-azure/internal/controller/insights/monitoractivitylogalert"
monitorautoscalesetting "github.com/upbound/provider-azure/internal/controller/insights/monitorautoscalesetting"
monitordatacollectionendpoint "github.com/upbound/provider-azure/internal/controller/insights/monitordatacollectionendpoint"
monitordatacollectionrule "github.com/upbound/provider-azure/internal/controller/insights/monitordatacollectionrule"
monitordatacollectionruleassociation "github.com/upbound/provider-azure/internal/controller/insights/monitordatacollectionruleassociation"
monitordiagnosticsetting "github.com/upbound/provider-azure/internal/controller/insights/monitordiagnosticsetting"
monitormetricalert "github.com/upbound/provider-azure/internal/controller/insights/monitormetricalert"
monitorprivatelinkscope "github.com/upbound/provider-azure/internal/controller/insights/monitorprivatelinkscope"
monitorprivatelinkscopedservice "github.com/upbound/provider-azure/internal/controller/insights/monitorprivatelinkscopedservice"
monitorscheduledqueryrulesalert "github.com/upbound/provider-azure/internal/controller/insights/monitorscheduledqueryrulesalert"
monitorscheduledqueryrulesalertv2 "github.com/upbound/provider-azure/internal/controller/insights/monitorscheduledqueryrulesalertv2"
monitorscheduledqueryruleslog "github.com/upbound/provider-azure/internal/controller/insights/monitorscheduledqueryruleslog"
)
// Setup_insights creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_insights(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
applicationinsights.Setup,
applicationinsightsanalyticsitem.Setup,
applicationinsightsapikey.Setup,
applicationinsightssmartdetectionrule.Setup,
applicationinsightsstandardwebtest.Setup,
applicationinsightswebtest.Setup,
applicationinsightsworkbook.Setup,
applicationinsightsworkbooktemplate.Setup,
monitoractiongroup.Setup,
monitoractivitylogalert.Setup,
monitorautoscalesetting.Setup,
monitordatacollectionendpoint.Setup,
monitordatacollectionrule.Setup,
monitordatacollectionruleassociation.Setup,
monitordiagnosticsetting.Setup,
monitormetricalert.Setup,
monitorprivatelinkscope.Setup,
monitorprivatelinkscopedservice.Setup,
monitorscheduledqueryrulesalert.Setup,
monitorscheduledqueryrulesalertv2.Setup,
monitorscheduledqueryruleslog.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}