-
Notifications
You must be signed in to change notification settings - Fork 75
/
zz_web_setup.go
executable file
·62 lines (57 loc) · 2.81 KB
/
zz_web_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
// 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"
appactiveslot "github.com/upbound/provider-azure/internal/controller/web/appactiveslot"
apphybridconnection "github.com/upbound/provider-azure/internal/controller/web/apphybridconnection"
appserviceplan "github.com/upbound/provider-azure/internal/controller/web/appserviceplan"
functionapp "github.com/upbound/provider-azure/internal/controller/web/functionapp"
functionappactiveslot "github.com/upbound/provider-azure/internal/controller/web/functionappactiveslot"
functionappfunction "github.com/upbound/provider-azure/internal/controller/web/functionappfunction"
functionapphybridconnection "github.com/upbound/provider-azure/internal/controller/web/functionapphybridconnection"
functionappslot "github.com/upbound/provider-azure/internal/controller/web/functionappslot"
linuxfunctionapp "github.com/upbound/provider-azure/internal/controller/web/linuxfunctionapp"
linuxfunctionappslot "github.com/upbound/provider-azure/internal/controller/web/linuxfunctionappslot"
linuxwebapp "github.com/upbound/provider-azure/internal/controller/web/linuxwebapp"
linuxwebappslot "github.com/upbound/provider-azure/internal/controller/web/linuxwebappslot"
serviceplan "github.com/upbound/provider-azure/internal/controller/web/serviceplan"
sourcecontroltoken "github.com/upbound/provider-azure/internal/controller/web/sourcecontroltoken"
staticsite "github.com/upbound/provider-azure/internal/controller/web/staticsite"
windowsfunctionapp "github.com/upbound/provider-azure/internal/controller/web/windowsfunctionapp"
windowsfunctionappslot "github.com/upbound/provider-azure/internal/controller/web/windowsfunctionappslot"
windowswebapp "github.com/upbound/provider-azure/internal/controller/web/windowswebapp"
windowswebappslot "github.com/upbound/provider-azure/internal/controller/web/windowswebappslot"
)
// Setup_web creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_web(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
appactiveslot.Setup,
apphybridconnection.Setup,
appserviceplan.Setup,
functionapp.Setup,
functionappactiveslot.Setup,
functionappfunction.Setup,
functionapphybridconnection.Setup,
functionappslot.Setup,
linuxfunctionapp.Setup,
linuxfunctionappslot.Setup,
linuxwebapp.Setup,
linuxwebappslot.Setup,
serviceplan.Setup,
sourcecontroltoken.Setup,
staticsite.Setup,
windowsfunctionapp.Setup,
windowsfunctionappslot.Setup,
windowswebapp.Setup,
windowswebappslot.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}