-
Notifications
You must be signed in to change notification settings - Fork 121
/
zz_s3_setup.go
executable file
·70 lines (65 loc) · 3.51 KB
/
zz_s3_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
67
68
69
70
// 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"
bucket "github.com/upbound/provider-aws/internal/controller/s3/bucket"
bucketaccelerateconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketaccelerateconfiguration"
bucketacl "github.com/upbound/provider-aws/internal/controller/s3/bucketacl"
bucketanalyticsconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketanalyticsconfiguration"
bucketcorsconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketcorsconfiguration"
bucketintelligenttieringconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketintelligenttieringconfiguration"
bucketinventory "github.com/upbound/provider-aws/internal/controller/s3/bucketinventory"
bucketlifecycleconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketlifecycleconfiguration"
bucketlogging "github.com/upbound/provider-aws/internal/controller/s3/bucketlogging"
bucketmetric "github.com/upbound/provider-aws/internal/controller/s3/bucketmetric"
bucketnotification "github.com/upbound/provider-aws/internal/controller/s3/bucketnotification"
bucketobject "github.com/upbound/provider-aws/internal/controller/s3/bucketobject"
bucketobjectlockconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketobjectlockconfiguration"
bucketownershipcontrols "github.com/upbound/provider-aws/internal/controller/s3/bucketownershipcontrols"
bucketpolicy "github.com/upbound/provider-aws/internal/controller/s3/bucketpolicy"
bucketpublicaccessblock "github.com/upbound/provider-aws/internal/controller/s3/bucketpublicaccessblock"
bucketreplicationconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketreplicationconfiguration"
bucketrequestpaymentconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketrequestpaymentconfiguration"
bucketserversideencryptionconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketserversideencryptionconfiguration"
bucketversioning "github.com/upbound/provider-aws/internal/controller/s3/bucketversioning"
bucketwebsiteconfiguration "github.com/upbound/provider-aws/internal/controller/s3/bucketwebsiteconfiguration"
object "github.com/upbound/provider-aws/internal/controller/s3/object"
objectcopy "github.com/upbound/provider-aws/internal/controller/s3/objectcopy"
)
// Setup_s3 creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_s3(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
bucket.Setup,
bucketaccelerateconfiguration.Setup,
bucketacl.Setup,
bucketanalyticsconfiguration.Setup,
bucketcorsconfiguration.Setup,
bucketintelligenttieringconfiguration.Setup,
bucketinventory.Setup,
bucketlifecycleconfiguration.Setup,
bucketlogging.Setup,
bucketmetric.Setup,
bucketnotification.Setup,
bucketobject.Setup,
bucketobjectlockconfiguration.Setup,
bucketownershipcontrols.Setup,
bucketpolicy.Setup,
bucketpublicaccessblock.Setup,
bucketreplicationconfiguration.Setup,
bucketrequestpaymentconfiguration.Setup,
bucketserversideencryptionconfiguration.Setup,
bucketversioning.Setup,
bucketwebsiteconfiguration.Setup,
object.Setup,
objectcopy.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}