-
Notifications
You must be signed in to change notification settings - Fork 123
/
zz_directconnect_setup.go
executable file
·56 lines (51 loc) · 2.79 KB
/
zz_directconnect_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
/*
Copyright 2021 Upbound Inc.
*/
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/upbound/upjet/pkg/controller"
bgppeer "github.com/upbound/provider-aws/internal/controller/directconnect/bgppeer"
connection "github.com/upbound/provider-aws/internal/controller/directconnect/connection"
connectionassociation "github.com/upbound/provider-aws/internal/controller/directconnect/connectionassociation"
gateway "github.com/upbound/provider-aws/internal/controller/directconnect/gateway"
gatewayassociation "github.com/upbound/provider-aws/internal/controller/directconnect/gatewayassociation"
gatewayassociationproposal "github.com/upbound/provider-aws/internal/controller/directconnect/gatewayassociationproposal"
hostedprivatevirtualinterface "github.com/upbound/provider-aws/internal/controller/directconnect/hostedprivatevirtualinterface"
hostedprivatevirtualinterfaceaccepter "github.com/upbound/provider-aws/internal/controller/directconnect/hostedprivatevirtualinterfaceaccepter"
hostedpublicvirtualinterface "github.com/upbound/provider-aws/internal/controller/directconnect/hostedpublicvirtualinterface"
hostedpublicvirtualinterfaceaccepter "github.com/upbound/provider-aws/internal/controller/directconnect/hostedpublicvirtualinterfaceaccepter"
hostedtransitvirtualinterface "github.com/upbound/provider-aws/internal/controller/directconnect/hostedtransitvirtualinterface"
hostedtransitvirtualinterfaceaccepter "github.com/upbound/provider-aws/internal/controller/directconnect/hostedtransitvirtualinterfaceaccepter"
lag "github.com/upbound/provider-aws/internal/controller/directconnect/lag"
privatevirtualinterface "github.com/upbound/provider-aws/internal/controller/directconnect/privatevirtualinterface"
publicvirtualinterface "github.com/upbound/provider-aws/internal/controller/directconnect/publicvirtualinterface"
transitvirtualinterface "github.com/upbound/provider-aws/internal/controller/directconnect/transitvirtualinterface"
)
// Setup_directconnect creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_directconnect(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
bgppeer.Setup,
connection.Setup,
connectionassociation.Setup,
gateway.Setup,
gatewayassociation.Setup,
gatewayassociationproposal.Setup,
hostedprivatevirtualinterface.Setup,
hostedprivatevirtualinterfaceaccepter.Setup,
hostedpublicvirtualinterface.Setup,
hostedpublicvirtualinterfaceaccepter.Setup,
hostedtransitvirtualinterface.Setup,
hostedtransitvirtualinterfaceaccepter.Setup,
lag.Setup,
privatevirtualinterface.Setup,
publicvirtualinterface.Setup,
transitvirtualinterface.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}