-
Notifications
You must be signed in to change notification settings - Fork 123
/
zz_backup_setup.go
executable file
·44 lines (39 loc) · 1.53 KB
/
zz_backup_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
/*
Copyright 2021 Upbound Inc.
*/
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/upbound/upjet/pkg/controller"
framework "github.com/upbound/provider-aws/internal/controller/backup/framework"
globalsettings "github.com/upbound/provider-aws/internal/controller/backup/globalsettings"
plan "github.com/upbound/provider-aws/internal/controller/backup/plan"
regionsettings "github.com/upbound/provider-aws/internal/controller/backup/regionsettings"
reportplan "github.com/upbound/provider-aws/internal/controller/backup/reportplan"
selection "github.com/upbound/provider-aws/internal/controller/backup/selection"
vault "github.com/upbound/provider-aws/internal/controller/backup/vault"
vaultlockconfiguration "github.com/upbound/provider-aws/internal/controller/backup/vaultlockconfiguration"
vaultnotifications "github.com/upbound/provider-aws/internal/controller/backup/vaultnotifications"
vaultpolicy "github.com/upbound/provider-aws/internal/controller/backup/vaultpolicy"
)
// Setup_backup creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_backup(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
framework.Setup,
globalsettings.Setup,
plan.Setup,
regionsettings.Setup,
reportplan.Setup,
selection.Setup,
vault.Setup,
vaultlockconfiguration.Setup,
vaultnotifications.Setup,
vaultpolicy.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}