-
Notifications
You must be signed in to change notification settings - Fork 123
/
zz_glue_setup.go
executable file
·52 lines (47 loc) · 2.03 KB
/
zz_glue_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
// 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"
catalogdatabase "github.com/upbound/provider-aws/internal/controller/glue/catalogdatabase"
catalogtable "github.com/upbound/provider-aws/internal/controller/glue/catalogtable"
classifier "github.com/upbound/provider-aws/internal/controller/glue/classifier"
connection "github.com/upbound/provider-aws/internal/controller/glue/connection"
crawler "github.com/upbound/provider-aws/internal/controller/glue/crawler"
datacatalogencryptionsettings "github.com/upbound/provider-aws/internal/controller/glue/datacatalogencryptionsettings"
job "github.com/upbound/provider-aws/internal/controller/glue/job"
registry "github.com/upbound/provider-aws/internal/controller/glue/registry"
resourcepolicy "github.com/upbound/provider-aws/internal/controller/glue/resourcepolicy"
schema "github.com/upbound/provider-aws/internal/controller/glue/schema"
securityconfiguration "github.com/upbound/provider-aws/internal/controller/glue/securityconfiguration"
trigger "github.com/upbound/provider-aws/internal/controller/glue/trigger"
userdefinedfunction "github.com/upbound/provider-aws/internal/controller/glue/userdefinedfunction"
workflow "github.com/upbound/provider-aws/internal/controller/glue/workflow"
)
// Setup_glue creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_glue(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
catalogdatabase.Setup,
catalogtable.Setup,
classifier.Setup,
connection.Setup,
crawler.Setup,
datacatalogencryptionsettings.Setup,
job.Setup,
registry.Setup,
resourcepolicy.Setup,
schema.Setup,
securityconfiguration.Setup,
trigger.Setup,
userdefinedfunction.Setup,
workflow.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}