-
Notifications
You must be signed in to change notification settings - Fork 123
/
zz_wafregional_setup.go
executable file
·46 lines (41 loc) · 1.69 KB
/
zz_wafregional_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
/*
Copyright 2021 Upbound Inc.
*/
package controller
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/upbound/upjet/pkg/controller"
bytematchset "github.com/upbound/provider-aws/internal/controller/wafregional/bytematchset"
geomatchset "github.com/upbound/provider-aws/internal/controller/wafregional/geomatchset"
ipset "github.com/upbound/provider-aws/internal/controller/wafregional/ipset"
ratebasedrule "github.com/upbound/provider-aws/internal/controller/wafregional/ratebasedrule"
regexmatchset "github.com/upbound/provider-aws/internal/controller/wafregional/regexmatchset"
regexpatternset "github.com/upbound/provider-aws/internal/controller/wafregional/regexpatternset"
rule "github.com/upbound/provider-aws/internal/controller/wafregional/rule"
sizeconstraintset "github.com/upbound/provider-aws/internal/controller/wafregional/sizeconstraintset"
sqlinjectionmatchset "github.com/upbound/provider-aws/internal/controller/wafregional/sqlinjectionmatchset"
webacl "github.com/upbound/provider-aws/internal/controller/wafregional/webacl"
xssmatchset "github.com/upbound/provider-aws/internal/controller/wafregional/xssmatchset"
)
// Setup_wafregional creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_wafregional(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
bytematchset.Setup,
geomatchset.Setup,
ipset.Setup,
ratebasedrule.Setup,
regexmatchset.Setup,
regexpatternset.Setup,
rule.Setup,
sizeconstraintset.Setup,
sqlinjectionmatchset.Setup,
webacl.Setup,
xssmatchset.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}