-
Notifications
You must be signed in to change notification settings - Fork 123
/
zz_connect_setup.go
executable file
·54 lines (49 loc) · 2.25 KB
/
zz_connect_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
// SPDX-FileCopyrightText: 2023 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"
botassociation "github.com/upbound/provider-aws/internal/controller/connect/botassociation"
contactflow "github.com/upbound/provider-aws/internal/controller/connect/contactflow"
contactflowmodule "github.com/upbound/provider-aws/internal/controller/connect/contactflowmodule"
hoursofoperation "github.com/upbound/provider-aws/internal/controller/connect/hoursofoperation"
instance "github.com/upbound/provider-aws/internal/controller/connect/instance"
instancestorageconfig "github.com/upbound/provider-aws/internal/controller/connect/instancestorageconfig"
lambdafunctionassociation "github.com/upbound/provider-aws/internal/controller/connect/lambdafunctionassociation"
phonenumber "github.com/upbound/provider-aws/internal/controller/connect/phonenumber"
queue "github.com/upbound/provider-aws/internal/controller/connect/queue"
quickconnect "github.com/upbound/provider-aws/internal/controller/connect/quickconnect"
routingprofile "github.com/upbound/provider-aws/internal/controller/connect/routingprofile"
securityprofile "github.com/upbound/provider-aws/internal/controller/connect/securityprofile"
user "github.com/upbound/provider-aws/internal/controller/connect/user"
userhierarchystructure "github.com/upbound/provider-aws/internal/controller/connect/userhierarchystructure"
vocabulary "github.com/upbound/provider-aws/internal/controller/connect/vocabulary"
)
// Setup_connect creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_connect(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
botassociation.Setup,
contactflow.Setup,
contactflowmodule.Setup,
hoursofoperation.Setup,
instance.Setup,
instancestorageconfig.Setup,
lambdafunctionassociation.Setup,
phonenumber.Setup,
queue.Setup,
quickconnect.Setup,
routingprofile.Setup,
securityprofile.Setup,
user.Setup,
userhierarchystructure.Setup,
vocabulary.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}