-
Notifications
You must be signed in to change notification settings - Fork 121
/
zz_ssoadmin_setup.go
executable file
·34 lines (30 loc) · 1.45 KB
/
zz_ssoadmin_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
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/crossplane/upjet/pkg/controller"
accountassignment "github.com/upbound/provider-aws/internal/controller/ssoadmin/accountassignment"
customermanagedpolicyattachment "github.com/upbound/provider-aws/internal/controller/ssoadmin/customermanagedpolicyattachment"
instanceaccesscontrolattributes "github.com/upbound/provider-aws/internal/controller/ssoadmin/instanceaccesscontrolattributes"
managedpolicyattachment "github.com/upbound/provider-aws/internal/controller/ssoadmin/managedpolicyattachment"
permissionsboundaryattachment "github.com/upbound/provider-aws/internal/controller/ssoadmin/permissionsboundaryattachment"
permissionset "github.com/upbound/provider-aws/internal/controller/ssoadmin/permissionset"
permissionsetinlinepolicy "github.com/upbound/provider-aws/internal/controller/ssoadmin/permissionsetinlinepolicy"
)
// Setup_ssoadmin creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_ssoadmin(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
accountassignment.Setup,
customermanagedpolicyattachment.Setup,
instanceaccesscontrolattributes.Setup,
managedpolicyattachment.Setup,
permissionsboundaryattachment.Setup,
permissionset.Setup,
permissionsetinlinepolicy.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}