-
Notifications
You must be signed in to change notification settings - Fork 123
/
zz_rds_setup.go
executable file
·66 lines (61 loc) · 2.95 KB
/
zz_rds_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: 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"
cluster "github.com/upbound/provider-aws/internal/controller/rds/cluster"
clusteractivitystream "github.com/upbound/provider-aws/internal/controller/rds/clusteractivitystream"
clusterendpoint "github.com/upbound/provider-aws/internal/controller/rds/clusterendpoint"
clusterinstance "github.com/upbound/provider-aws/internal/controller/rds/clusterinstance"
clusterparametergroup "github.com/upbound/provider-aws/internal/controller/rds/clusterparametergroup"
clusterroleassociation "github.com/upbound/provider-aws/internal/controller/rds/clusterroleassociation"
clustersnapshot "github.com/upbound/provider-aws/internal/controller/rds/clustersnapshot"
dbinstanceautomatedbackupsreplication "github.com/upbound/provider-aws/internal/controller/rds/dbinstanceautomatedbackupsreplication"
dbsnapshotcopy "github.com/upbound/provider-aws/internal/controller/rds/dbsnapshotcopy"
eventsubscription "github.com/upbound/provider-aws/internal/controller/rds/eventsubscription"
globalcluster "github.com/upbound/provider-aws/internal/controller/rds/globalcluster"
instance "github.com/upbound/provider-aws/internal/controller/rds/instance"
instanceroleassociation "github.com/upbound/provider-aws/internal/controller/rds/instanceroleassociation"
optiongroup "github.com/upbound/provider-aws/internal/controller/rds/optiongroup"
parametergroup "github.com/upbound/provider-aws/internal/controller/rds/parametergroup"
proxy "github.com/upbound/provider-aws/internal/controller/rds/proxy"
proxydefaulttargetgroup "github.com/upbound/provider-aws/internal/controller/rds/proxydefaulttargetgroup"
proxyendpoint "github.com/upbound/provider-aws/internal/controller/rds/proxyendpoint"
proxytarget "github.com/upbound/provider-aws/internal/controller/rds/proxytarget"
snapshot "github.com/upbound/provider-aws/internal/controller/rds/snapshot"
subnetgroup "github.com/upbound/provider-aws/internal/controller/rds/subnetgroup"
)
// Setup_rds creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_rds(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
cluster.Setup,
clusteractivitystream.Setup,
clusterendpoint.Setup,
clusterinstance.Setup,
clusterparametergroup.Setup,
clusterroleassociation.Setup,
clustersnapshot.Setup,
dbinstanceautomatedbackupsreplication.Setup,
dbsnapshotcopy.Setup,
eventsubscription.Setup,
globalcluster.Setup,
instance.Setup,
instanceroleassociation.Setup,
optiongroup.Setup,
parametergroup.Setup,
proxy.Setup,
proxydefaulttargetgroup.Setup,
proxyendpoint.Setup,
proxytarget.Setup,
snapshot.Setup,
subnetgroup.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}