-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathzz_cosmosdb_setup.go
executable file
·60 lines (55 loc) · 2.65 KB
/
zz_cosmosdb_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
// 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"
account "github.com/upbound/provider-azure/internal/controller/cosmosdb/account"
cassandracluster "github.com/upbound/provider-azure/internal/controller/cosmosdb/cassandracluster"
cassandradatacenter "github.com/upbound/provider-azure/internal/controller/cosmosdb/cassandradatacenter"
cassandrakeyspace "github.com/upbound/provider-azure/internal/controller/cosmosdb/cassandrakeyspace"
cassandratable "github.com/upbound/provider-azure/internal/controller/cosmosdb/cassandratable"
gremlindatabase "github.com/upbound/provider-azure/internal/controller/cosmosdb/gremlindatabase"
gremlingraph "github.com/upbound/provider-azure/internal/controller/cosmosdb/gremlingraph"
mongocollection "github.com/upbound/provider-azure/internal/controller/cosmosdb/mongocollection"
mongodatabase "github.com/upbound/provider-azure/internal/controller/cosmosdb/mongodatabase"
sqlcontainer "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqlcontainer"
sqldatabase "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqldatabase"
sqldedicatedgateway "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqldedicatedgateway"
sqlfunction "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqlfunction"
sqlroleassignment "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqlroleassignment"
sqlroledefinition "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqlroledefinition"
sqlstoredprocedure "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqlstoredprocedure"
sqltrigger "github.com/upbound/provider-azure/internal/controller/cosmosdb/sqltrigger"
table "github.com/upbound/provider-azure/internal/controller/cosmosdb/table"
)
// Setup_cosmosdb creates all controllers with the supplied logger and adds them to
// the supplied manager.
func Setup_cosmosdb(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
account.Setup,
cassandracluster.Setup,
cassandradatacenter.Setup,
cassandrakeyspace.Setup,
cassandratable.Setup,
gremlindatabase.Setup,
gremlingraph.Setup,
mongocollection.Setup,
mongodatabase.Setup,
sqlcontainer.Setup,
sqldatabase.Setup,
sqldedicatedgateway.Setup,
sqlfunction.Setup,
sqlroleassignment.Setup,
sqlroledefinition.Setup,
sqlstoredprocedure.Setup,
sqltrigger.Setup,
table.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
}
}
return nil
}