-
Notifications
You must be signed in to change notification settings - Fork 117
/
zz_lightsail_setup.go
executable file
·56 lines (51 loc) · 2.27 KB
/
zz_lightsail_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
// 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"
bucket "github.com/upbound/provider-aws/internal/controller/lightsail/bucket"
certificate "github.com/upbound/provider-aws/internal/controller/lightsail/certificate"
containerservice "github.com/upbound/provider-aws/internal/controller/lightsail/containerservice"
disk "github.com/upbound/provider-aws/internal/controller/lightsail/disk"
diskattachment "github.com/upbound/provider-aws/internal/controller/lightsail/diskattachment"
domain "github.com/upbound/provider-aws/internal/controller/lightsail/domain"
domainentry "github.com/upbound/provider-aws/internal/controller/lightsail/domainentry"
instance "github.com/upbound/provider-aws/internal/controller/lightsail/instance"
instancepublicports "github.com/upbound/provider-aws/internal/controller/lightsail/instancepublicports"
keypair "github.com/upbound/provider-aws/internal/controller/lightsail/keypair"
lb "github.com/upbound/provider-aws/internal/controller/lightsail/lb"
lbattachment "github.com/upbound/provider-aws/internal/controller/lightsail/lbattachment"
lbcertificate "github.com/upbound/provider-aws/internal/controller/lightsail/lbcertificate"
lbstickinesspolicy "github.com/upbound/provider-aws/internal/controller/lightsail/lbstickinesspolicy"
staticip "github.com/upbound/provider-aws/internal/controller/lightsail/staticip"
staticipattachment "github.com/upbound/provider-aws/internal/controller/lightsail/staticipattachment"
)
// Setup_lightsail creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_lightsail(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
bucket.Setup,
certificate.Setup,
containerservice.Setup,
disk.Setup,
diskattachment.Setup,
domain.Setup,
domainentry.Setup,
instance.Setup,
instancepublicports.Setup,
keypair.Setup,
lb.Setup,
lbattachment.Setup,
lbcertificate.Setup,
lbstickinesspolicy.Setup,
staticip.Setup,
staticipattachment.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}